Only force a stateful interface for top level functions.
[matthijs/master-project/cλash.git] / Pretty.hs
index c4556a81b90980dcc8bcfd97457c901fb0568e58..4136adea2ab9b9450046351c96b5cac9906da2eb 100644 (file)
--- a/Pretty.hs
+++ b/Pretty.hs
@@ -51,7 +51,7 @@ instance Pretty VHDLSession where
     $+$ text "NameCount: " $$ nest 15 (int nameCount)
     $+$ text "Functions: " $$ nest 15 (vcat (map ppfunc (Map.toList funcs)))
     where
-      ppfunc (hsfunc, (flatfunc)) =
+      ppfunc (hsfunc, (FuncData flatfunc)) =
         pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (pPrint flatfunc))
       modname = showSDoc $ Module.pprModule (HscTypes.cm_module mod)