[project @ 2005-01-31 16:59:37 by simonpj]
[ghc-hetmet.git] / ghc / compiler / main / HscStats.lhs
index cb3c70f..85e692b 100644 (file)
@@ -99,9 +99,9 @@ ppSourceStats short (L _ (HsModule _ exports imports ldecls _))
     (inst_method_ds, method_specs, method_inlines)
        = foldr add3 (0,0,0) (map inst_info inst_decls)
 
-    count_bind (PatBind (L _ (VarPat n)) r) = (1,0)
-    count_bind (PatBind p r)               = (0,1)
-    count_bind (FunBind f _ m)             = (0,1)
+    count_bind (PatBind (L _ (VarPat n)) r _) = (1,0)
+    count_bind (PatBind p r _)                = (0,1)
+    count_bind (FunBind f _ m)                = (0,1)
 
     count_sigs sigs = foldr add4 (0,0,0,0) (map sig_info sigs)
 
@@ -123,7 +123,7 @@ ppSourceStats short (L _ (HsModule _ exports imports ldecls _))
 
     data_info (TyData {tcdCons = cs, tcdDerivs = derivs})
        = (length cs, case derivs of Nothing -> 0
-                                    Just ds -> length (unLoc ds))
+                                    Just ds -> length ds)
     data_info other = (0,0)
 
     class_info decl@(ClassDecl {})