X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Pretty.hs;h=0cc2b59d98ab4f2ab36ae49aa5e812afdc4b3a60;hb=6808406c77307ba110ec5fc7e03fa7359fdf4646;hp=ef92c4dc955aeffe47dfb0877ad1b08f80abbae3;hpb=cbf28d60bcea99c0d2c922097a2a4f8b76700d0a;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