Add a modFunc function to edit a function in the session.
[matthijs/master-project/cλash.git] / Pretty.hs
index 3c6e9fcf5225025fd16a4d8ea00a9d4d73aac33f..21a3795ff6b71986f2d5bc897a2c844af16c8ae8 100644 (file)
--- a/Pretty.hs
+++ b/Pretty.hs
@@ -45,9 +45,6 @@ instance Pretty id => Pretty (CondDef id) where
 instance Pretty id => Pretty (Signal id) where
   pPrint (Signal id) = pPrint id
 
-instance Pretty NamedSignal where
-  pPrint (NamedSignal name) = pPrint name
-
 instance Pretty VHDLSession where
   pPrint (VHDLSession mod nameCount funcs) =
     text "Module: " $$ nest 15 (text modname)
@@ -56,9 +53,8 @@ instance Pretty VHDLSession where
     where
       ppfunc (hsfunc, (FuncData flatfunc)) =
         pPrint hsfunc $+$ (text "Flattened: " $$ nest 15 (ppffunc flatfunc))
-      ppffunc (Just (Left f)) = pPrint f
-      ppffunc (Just (Right f)) = pPrint f
-      ppffunc Nothing = text "Nothing"
+      ppffunc (Just f) = pPrint f
+      ppffunc Nothing  = text "Nothing"
       modname = showSDoc $ Module.pprModule (HscTypes.cm_module mod)
 
 instance (OutputableBndr b) => Pretty (CoreSyn.Bind b) where