instance Pretty VHDLSession where
pPrint (VHDLSession mod nameCount funcs) =
text "Module: " $$ nest 15 (text modname)
instance Pretty VHDLSession where
pPrint (VHDLSession mod nameCount funcs) =
text "Module: " $$ nest 15 (text modname)
where
ppfunc (hsfunc, (FuncData flatfunc)) =
pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (ppffunc flatfunc))
where
ppfunc (hsfunc, (FuncData flatfunc)) =
pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (ppffunc flatfunc))
- ppffunc (Just (Left f)) = pPrint f
- ppffunc (Just (Right f)) = pPrint f
- ppffunc Nothing = text "Nothing"
+ 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
modname = showSDoc $ Module.pprModule (HscTypes.cm_module mod)
instance (OutputableBndr b) => Pretty (CoreSyn.Bind b) where