Show type of binder in listBinding.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Tue, 28 Jul 2009 13:40:41 +0000 (15:40 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Tue, 28 Jul 2009 13:40:41 +0000 (15:40 +0200)
cλash/CLasH/Translator.hs

index 1be94458ed8920f7eb742f3498d22178622f9a8a..caa02071dbd6dcf9c476e18d24c493b7af398fae 100644 (file)
@@ -89,11 +89,13 @@ listBinding :: (CoreBndr, CoreExpr) -> IO ()
 listBinding (b, e) = do
   putStr "\nBinder: "
   putStr $ show b
-  putStr "\nExpression: \n"
+  putStr "\nType of Binder: \n"
+  putStr $ showSDoc $ ppr $ Var.varType b
+  putStr "\n\nExpression: \n"
   putStr $ prettyShow e
   putStr "\n\n"
   putStr $ showSDoc $ ppr e
-  putStr "\n\n"
+  putStr "\n\nType of Expression: \n"
   putStr $ showSDoc $ ppr $ CoreUtils.exprType e
   putStr "\n\n"