X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FHscStats.lhs;h=e717bfec64568edac4a9bfbbad7c5b64d60cebe2;hb=8604da0136707cc14845d14a88c2272fe576b6d0;hp=d12831edb70ae478a0b541f58d54efc74515235b;hpb=8bde64892f4cd134d163954c49b1e30b1ee060ff;p=ghc-hetmet.git diff --git a/compiler/main/HscStats.lhs b/compiler/main/HscStats.lhs index d12831e..e717bfe 100644 --- a/compiler/main/HscStats.lhs +++ b/compiler/main/HscStats.lhs @@ -6,8 +6,6 @@ \begin{code} module HscStats ( ppSourceStats ) where --- XXX This define is a bit of a hack, and should be done more nicely -#define FAST_STRING_NOT_NEEDED 1 #include "HsVersions.h" import HsSyn @@ -16,7 +14,6 @@ import SrcLoc import Char import Bag import Util -import Pretty ( Doc ) import RdrName \end{code} @@ -27,7 +24,7 @@ import RdrName %************************************************************************ \begin{code} -ppSourceStats :: Bool -> Located (HsModule RdrName) -> PprStyle -> Doc +ppSourceStats :: Bool -> Located (HsModule RdrName) -> SDoc ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _ _)) = (if short then hcat else vcat) (map pp_val