X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=6f5f63dc71b46323fb582674992bd18e7c335d19;hb=72a84356f5507b73d4d5f84844aac9334ee17795;hp=2bf57f761541e3280bec0a32175c78a12d81b344;hpb=20fbdf46508998bd11da03f3abd6e8725508b0a1;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index 2bf57f7..6f5f63d 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -47,8 +47,17 @@ instance Pretty id => Pretty (CondDef id) where pPrint _ = text "TODO" instance Pretty SignalInfo where - pPrint (SignalInfo Nothing ty) = empty - pPrint (SignalInfo (Just name) ty) = text ":" <> text name + pPrint (SignalInfo name use ty) = + text ":" <> (pPrint use) <> (ppname name) + where + ppname Nothing = empty + ppname (Just name) = text ":" <> text name + +instance Pretty SigUse where + pPrint SigPort = text "P" + pPrint SigInternal = text "I" + pPrint SigState = text "S" + pPrint SigSubState = text "s" instance Pretty VHDLSession where pPrint (VHDLSession mod nameCount funcs) =