pPrint _ = text "TODO"
instance Pretty id => Pretty (Signal id) where
- pPrint (Signal id) = pPrint id
+ pPrint (Signal id Nothing) = pPrint id
+ pPrint (Signal id (Just name)) = pPrint id <> text ":" <> text name
instance Pretty VHDLSession where
pPrint (VHDLSession mod nameCount funcs) =
$+$ 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