X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FHscStats.lhs;h=b96eb56b8c2e69b85446241c36d5ad6c5d4d7518;hb=0a5613f40b0e32cf59966e6b56b807cdbe80aa7b;hp=52e396dcde1ffd20ade78dbc62d6c6f2255e4c3f;hpb=d74b100eaa9e782710b752805ac148e91e5c6850;p=ghc-hetmet.git diff --git a/compiler/main/HscStats.lhs b/compiler/main/HscStats.lhs index 52e396d..b96eb56 100644 --- a/compiler/main/HscStats.lhs +++ b/compiler/main/HscStats.lhs @@ -6,17 +6,16 @@ \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 import Outputable import SrcLoc -import Char import Bag import Util import RdrName + +import Data.Char \end{code} %************************************************************************ @@ -27,7 +26,7 @@ import RdrName \begin{code} ppSourceStats :: Bool -> Located (HsModule RdrName) -> SDoc -ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _ _)) +ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _)) = (if short then hcat else vcat) (map pp_val [("ExportAll ", export_all), -- 1 if no export list @@ -121,7 +120,7 @@ ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _ _)) sig_info (InlineSig _ _) = (0,0,0,1) sig_info _ = (0,0,0,0) - import_info (L _ (ImportDecl _ _ qual as spec)) + import_info (L _ (ImportDecl _ _ _ qual as spec)) = add6 (1, qual_info qual, as_info as, 0,0,0) (spec_info spec) qual_info False = 0 qual_info True = 1