[Type-constraints] Remove tidyTopType
It didn't do much anyway
This commit is contained in:
parent
fde7bafe56
commit
4e4eff7bdb
@ -77,7 +77,7 @@ collectSpansTypes tcs lc =
|
|||||||
preds = concatMap fst ctys
|
preds = concatMap fst ctys
|
||||||
subs = G.mkTopTvSubst $ concatMap snd ctys
|
subs = G.mkTopTvSubst $ concatMap snd ctys
|
||||||
ty = G.substTy subs $ G.mkFunTys preds genTyp
|
ty = G.substTy subs $ G.mkFunTys preds genTyp
|
||||||
in [(spn, G.tidyTopType ty)]
|
in [(spn, ty)]
|
||||||
getPreds x | G.isForAllTy x = getPreds $ G.dropForAlls x
|
getPreds x | G.isForAllTy x = getPreds $ G.dropForAlls x
|
||||||
| Just (c, t) <- G.splitFunTy_maybe x
|
| Just (c, t) <- G.splitFunTy_maybe x
|
||||||
, G.isPredTy c = first (c:) $ getPreds t
|
, G.isPredTy c = first (c:) $ getPreds t
|
||||||
|
Loading…
Reference in New Issue
Block a user