X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=0cc2b59d98ab4f2ab36ae49aa5e812afdc4b3a60;hb=6e1beb07825c53ab0da16b815d58c24a1b4ea449;hp=ef92c4dc955aeffe47dfb0877ad1b08f80abbae3;hpb=eb685a2f6743bfea37ef304cad0129e16c2809ee;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Pretty.hs b/Pretty.hs index ef92c4d..0cc2b59 100644 --- a/Pretty.hs +++ b/Pretty.hs @@ -76,8 +76,8 @@ instance Pretty SigDef where instance Pretty SignalExpr where pPrint (EqLit id lit) = parens $ pPrint id <> text " = " <> text lit - pPrint (Literal lit) = - text lit + pPrint (Literal lit ty) = + text "(" <> text (show ty) <> text ") " <> text lit pPrint (Eq a b) = parens $ pPrint a <> text " = " <> pPrint b