X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=21a3795ff6b71986f2d5bc897a2c844af16c8ae8;hb=40ece4d80b50d59c781b9bc157f5379c3a3bb14a;hp=74ffec79cc52f268ef6217b3a66d5e05f2c944b9;hpb=1f0b33729534d451d7dcc46d4614d1a12b31ea82;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index 74ffec7..21a3795 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -52,7 +52,9 @@ instance Pretty VHDLSession where $+$ text "Functions: " $$ nest 15 (vcat (map ppfunc (Map.toList funcs))) where ppfunc (hsfunc, (FuncData flatfunc)) = - pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (pPrint flatfunc)) + pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (ppffunc flatfunc)) + ppffunc (Just f) = pPrint f + ppffunc Nothing = text "Nothing" modname = showSDoc $ Module.pprModule (HscTypes.cm_module mod) instance (OutputableBndr b) => Pretty (CoreSyn.Bind b) where