instance Pretty id => Pretty (CondDef id) where
pPrint _ = text "TODO"
-instance Pretty id => Pretty (Signal id) where
- pPrint (Signal id) = pPrint id
+instance Pretty SignalInfo where
+ pPrint (SignalInfo Nothing) = empty
+ pPrint (SignalInfo (Just name)) = 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