X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FHscStats.lhs;h=21d47eb32c2d4d83696711fe57f8e528b5a0c0c7;hp=ee8717faf1488b44a6f9003270d1f5cdcc34d2b3;hb=17b297d97d327620ed6bfab942f8992b2446f1bf;hpb=190f24892156953d73b55401d0467a6f1a88ce5d diff --git a/compiler/main/HscStats.lhs b/compiler/main/HscStats.lhs index ee8717f..21d47eb 100644 --- a/compiler/main/HscStats.lhs +++ b/compiler/main/HscStats.lhs @@ -4,6 +4,13 @@ \section[GHC_Stats]{Statistics for per-module compilations} \begin{code} +{-# OPTIONS_GHC -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings +-- for details + module HscStats ( ppSourceStats ) where #include "HsVersions.h" @@ -38,10 +45,10 @@ ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _ _ _)) ("FixityDecls ", fixity_sigs), ("DefaultDecls ", default_ds), ("TypeDecls ", type_ds), - ("TypeFunDecls ", type_fun_ds), - ("TypeEquations ", type_equs), ("DataDecls ", data_ds), ("NewTypeDecls ", newt_ds), + ("TypeFamilyDecls ", type_fam_ds), + ("FamilyInstDecls ", fam_inst_ds), ("DataConstrs ", data_constrs), ("DataDerivings ", data_derivs), ("ClassDecls ", class_ds), @@ -77,7 +84,7 @@ ppSourceStats short (L _ (HsModule _ exports imports ldecls _ _ _ _)) -- in class decls. ToDo tycl_decls = [d | TyClD d <- decls] - (class_ds, type_ds, type_fun_ds, type_equs, data_ds, newt_ds) = + (class_ds, type_ds, data_ds, newt_ds, type_fam_ds, fam_inst_ds) = countTyClDecls tycl_decls inst_decls = [d | InstD d <- decls]