From 4e4eff7bdba443dcb5d21c3c477d26f447e54642 Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Wed, 20 Jan 2016 00:10:18 +0300 Subject: [PATCH] [Type-constraints] Remove tidyTopType It didn't do much anyway --- Language/Haskell/GhcMod/SrcUtils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Haskell/GhcMod/SrcUtils.hs b/Language/Haskell/GhcMod/SrcUtils.hs index 209e71a..ba05a06 100644 --- a/Language/Haskell/GhcMod/SrcUtils.hs +++ b/Language/Haskell/GhcMod/SrcUtils.hs @@ -77,7 +77,7 @@ collectSpansTypes tcs lc = preds = concatMap fst ctys subs = G.mkTopTvSubst $ concatMap snd ctys 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 | Just (c, t) <- G.splitFunTy_maybe x , G.isPredTy c = first (c:) $ getPreds t