projects
/
matthijs
/
master-project
/
cλash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a Type to a Literal SignalExpr.
[matthijs/master-project/cλash.git]
/
Pretty.hs
diff --git
a/Pretty.hs
b/Pretty.hs
index ef92c4dc955aeffe47dfb0877ad1b08f80abbae3..0cc2b59d98ab4f2ab36ae49aa5e812afdc4b3a60 100644
(file)
--- 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
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
pPrint (Eq a b) =
parens $ pPrint a <> text " = " <> pPrint b