X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=Pretty.hs;h=21a3795ff6b71986f2d5bc897a2c844af16c8ae8;hb=40ece4d80b50d59c781b9bc157f5379c3a3bb14a;hp=3c6e9fcf5225025fd16a4d8ea00a9d4d73aac33f;hpb=4fb701e41729143a897d43cd8a9c0217b8b3f68a;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index 3c6e9fc..21a3795 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -45,9 +45,6 @@ instance Pretty id => Pretty (CondDef id) where instance Pretty id => Pretty (Signal id) where pPrint (Signal id) = pPrint id -instance Pretty NamedSignal where - pPrint (NamedSignal name) = pPrint name - instance Pretty VHDLSession where pPrint (VHDLSession mod nameCount funcs) = text "Module: " $$ nest 15 (text modname) @@ -56,9 +53,8 @@ instance Pretty VHDLSession where 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