File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/tactics/src/Ide/Plugin/Tactic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ destructMatches f f2 t jdg = do
54
54
-- | Essentially same as 'dataConInstOrigArgTys' in GHC,
55
55
-- but we need some tweaks in GHC >= 8.8.
56
56
-- Since old 'dataConInstArgTys' seems working with >= 8.8,
57
- -- we just filter out non- class types in the result.
57
+ -- we just filter out class dictionaries anc coercions from the result.
58
58
dataConInstOrigArgTys' :: DataCon -> [Type ] -> [Type ]
59
59
dataConInstOrigArgTys' con ty =
60
60
let tys0 = dataConInstArgTys con ty
61
- in filter (maybe True ( not . isClassTyCon) . tyConAppTyCon_maybe ) tys0
61
+ in filter (not . isPredTy ) tys0
62
62
63
63
------------------------------------------------------------------------------
64
64
-- | Combinator for performing case splitting, and running sub-rules on the
You can’t perform that action at this time.
0 commit comments