diff options
author | Ian Lynagh <igloo@earth.li> | 2012-06-22 19:17:17 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-06-22 19:40:21 +0100 |
commit | 41a50207f1fb10c12518dedf07d9cfba6d41d0bc (patch) | |
tree | 34f0ef9151b3f0d4986b2978d0cd42726cc0bbef /ghc | |
parent | 03caa602fe5a05cb489094026be82b8a596ef923 (diff) | |
download | haskell-41a50207f1fb10c12518dedf07d9cfba6d41d0bc.tar.gz |
Remove 'on' from Util
We can now rely on it being available from Data.Function
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/InteractiveUI.hs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs index c56f5067f9..049b79eba9 100644 --- a/ghc/InteractiveUI.hs +++ b/ghc/InteractiveUI.hs @@ -62,6 +62,7 @@ import Control.Monad.IO.Class import Data.Array import qualified Data.ByteString.Char8 as BS import Data.Char +import Data.Function import Data.IORef ( IORef, readIORef, writeIORef ) import Data.List ( find, group, intercalate, intersperse, isPrefixOf, nub, partition, sort, sortBy ) @@ -989,12 +990,12 @@ filterOutChildren get_thing xs pprInfo :: PrintExplicitForalls -> (TyThing, Fixity, [GHC.ClsInst]) -> SDoc pprInfo pefas (thing, fixity, insts) = pprTyThingInContextLoc pefas thing - $$ show_fixity fixity + $$ show_fixity $$ vcat (map GHC.pprInstance insts) where - show_fixity fix - | fix == GHC.defaultFixity = empty - | otherwise = ppr fix <+> pprInfixName (GHC.getName thing) + show_fixity + | fixity == GHC.defaultFixity = empty + | otherwise = ppr fixity <+> pprInfixName (GHC.getName thing) ----------------------------------------------------------------------------- -- :main @@ -2151,11 +2152,11 @@ showBindings = do pprTT :: PrintExplicitForalls -> (TyThing, Fixity, [GHC.ClsInst]) -> SDoc pprTT pefas (thing, fixity, _insts) = pprTyThing pefas thing - $$ show_fixity fixity + $$ show_fixity where - show_fixity fix - | fix == GHC.defaultFixity = empty - | otherwise = ppr fix <+> ppr (GHC.getName thing) + show_fixity + | fixity == GHC.defaultFixity = empty + | otherwise = ppr fixity <+> ppr (GHC.getName thing) printTyThing :: TyThing -> GHCi () |