X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=d4ed8f01d93da2ddcc46be08d6c5f83eed1db487;hb=9913c8098b3f42e404ee1b76c2ccd47f15769c64;hp=ee4b3be78ec7c1facf6ea2402e753b943cf36f16;hpb=790cb87bc728be4140ea7cf0d5444cc4cf96d0dc;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index ee4b3be..d4ed8f0 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -42,9 +42,9 @@ instance Pretty id => Pretty (FApp id) where instance Pretty id => Pretty (CondDef id) where pPrint _ = text "TODO" -instance Pretty id => Pretty (Signal id) where - pPrint (Signal id Nothing) = pPrint id - pPrint (Signal id (Just name)) = pPrint id <> text ":" <> text name +instance Pretty SignalInfo where + pPrint (SignalInfo Nothing) = empty + pPrint (SignalInfo (Just name)) = text ":" <> text name instance Pretty VHDLSession where pPrint (VHDLSession mod nameCount funcs) =