Let mkCompInsSm look up the actual VHDL entity id.
[matthijs/master-project/cλash.git] / Pretty.hs
index 78876b30127b835e314dfcf4493edf77d69d6d01..2bf57f761541e3280bec0a32175c78a12d81b344 100644 (file)
--- a/Pretty.hs
+++ b/Pretty.hs
@@ -74,8 +74,9 @@ instance Pretty FuncData where
       pparch (Just _) = text "VHDL architecture present"
 
 instance Pretty Entity where
-  pPrint (Entity args res decl) =
-    text "Args: " $$ nest 10 (pPrint args)
+  pPrint (Entity id args res decl) =
+    text "Entity id: " $$ nest 10 (pPrint id)
+    $+$ text "Args: " $$ nest 10 (pPrint args)
     $+$ text "Result: " $$ nest 10 (pPrint res)
     $+$ ppdecl decl
     where