X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=183125cc65761869c7221e8bb4b5c75c641e38f4;hb=d23c70f3fee490d865aae9c5bfcad1bf1e1f565f;hp=ba0e3d01113c05167ca2387fd69dad2ef4b6fdc9;hpb=ed9f3e71c71db41d85a9dabb3a676f4c342b8266;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index ba0e3d0..183125c 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -37,21 +37,19 @@ instance Pretty HsValueUse where pPrint (HighOrder _ _) = text "Higher Order" instance Pretty FlatFunction where - pPrint (FlatFunction args res apps conds sigs) = + pPrint (FlatFunction args res defs sigs) = (text "Args: ") $$ nest 10 (pPrint args) $+$ (text "Result: ") $$ nest 10 (pPrint res) - $+$ (text "Apps: ") $$ nest 10 (vcat (map pPrint apps)) - $+$ (text "Conds: ") $$ nest 10 (pPrint conds) + $+$ (text "Defs: ") $$ nest 10 (pPrint defs) $+$ text "Signals: " $$ nest 10 (printList ppsig sigs) where ppsig (id, info) = pPrint id <> pPrint info -instance Pretty FApp where +instance Pretty SigDef where pPrint (FApp func args res) = pPrint func <> text " : " <> pPrint args <> text " -> " <> pPrint res - -instance Pretty CondDef where - pPrint _ = text "TODO" + pPrint (CondDef _ _ _ _) = text "TODO" + pPrint (UncondDef src dst) = text "TODO" instance Pretty SignalInfo where pPrint (SignalInfo name use ty) =