File tree 1 file changed +12
-6
lines changed
plugins/tactics/src/Ide/Plugin/Tactic 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,18 @@ splitAuto = do
203
203
Nothing -> throwError $ GoalMismatch " split" g
204
204
Just (tc, _) -> do
205
205
let dcs = tyConDataCons tc
206
- case isSplitWhitelisted jdg of
207
- True -> choice $ fmap splitDataCon dcs
208
- False -> choice $ flip fmap dcs $ \ dc -> pruning (splitDataCon dc) $ \ jdgs ->
209
- case any ((/= jGoal jdg) . jGoal) jdgs of
210
- True -> Nothing
211
- False -> Just $ UnhelpfulSplit $ nameOccName $ dataConName dc
206
+ -- TODO(sandy): Figure out the right strategy for pruning splits of
207
+ -- splits
208
+ choice $ fmap splitDataCon dcs
209
+ -- case isSplitWhitelisted jdg of
210
+ -- True -> choice $ fmap splitDataCon dcs
211
+ -- False -> do
212
+ -- choice $ flip fmap dcs $ \dc -> pruning (splitDataCon dc) $ \jdgs ->
213
+ -- case all ((== jGoal jdg) . jGoal) jdgs of
214
+ -- False -> Nothing
215
+ -- True -> do
216
+ -- traceMX "unhelpful split" $ nameOccName $ dataConName dc
217
+ -- Just $ UnhelpfulSplit $ nameOccName $ dataConName dc
212
218
213
219
214
220
------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments