Make listBind support recursive bindings.
[matthijs/master-project/cλash.git] / Pretty.hs
index 0cc2b59d98ab4f2ab36ae49aa5e812afdc4b3a60..b2ac91ddb6e3334b4b075df407c96936d8855195 100644 (file)
--- a/Pretty.hs
+++ b/Pretty.hs
@@ -132,6 +132,9 @@ instance (OutputableBndr b, Show b) => Pretty (CoreSyn.Bind b) where
   pPrint (CoreSyn.Rec binds) =
     text "Rec: " $$ nest 10 (vcat $ map (prettyBind) binds)
 
+instance (OutputableBndr b, Show b) => Pretty (CoreSyn.Expr b) where
+  pPrint = text . show
+
 instance Pretty AST.VHDLId where
   pPrint id = ForSyDe.Backend.Ppr.ppr id