diff options
author | Ian Lynagh <igloo@earth.li> | 2012-06-12 18:52:16 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-06-12 18:52:16 +0100 |
commit | 1b774aef07ad33b667fbf33e01c2dc9ed0e039f4 (patch) | |
tree | 75a8ce5ab45784b7d4e7b71ccae33da2cdbb5c4f /src/Haddock/GhcUtils.hs | |
parent | 315338287ea84b525da7d8fa8252cc9ec99597bb (diff) |
Follow changes in GHC
Diffstat (limited to 'src/Haddock/GhcUtils.hs')
-rw-r--r-- | src/Haddock/GhcUtils.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Haddock/GhcUtils.hs b/src/Haddock/GhcUtils.hs index c38bf9e5..a841e567 100644 --- a/src/Haddock/GhcUtils.hs +++ b/src/Haddock/GhcUtils.hs @@ -151,12 +151,12 @@ declATs (TyClD d) | isClassDecl d = map (tcdName . unL) $ tcdATs d declATs _ = [] -pretty :: Outputable a => a -> String -pretty x = showSDoc (ppr x) +pretty :: Outputable a => DynFlags -> a -> String +pretty = showPpr -trace_ppr :: Outputable a => a -> b -> b -trace_ppr x y = trace (pretty x) y +trace_ppr :: Outputable a => DynFlags -> a -> b -> b +trace_ppr dflags x y = trace (pretty dflags x) y ------------------------------------------------------------------------------- |