summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2010-09-08 15:05:10 +0000
committersimonpj@microsoft.com <unknown>2010-09-08 15:05:10 +0000
commit965782fa4a10ece58252c57a477bc851f06ef9d3 (patch)
tree2f2ae9287d250b00cb0082343ce6e3b8f6e5993b
parent5126e7cd4594d05cd78bcaccf044a30c0051fd9b (diff)
downloadhaskell-965782fa4a10ece58252c57a477bc851f06ef9d3.tar.gz
Add Outputable instance for OccEncl
-rw-r--r--compiler/simplCore/OccurAnal.lhs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/simplCore/OccurAnal.lhs b/compiler/simplCore/OccurAnal.lhs
index 7ac45ccda0..22e042a3d8 100644
--- a/compiler/simplCore/OccurAnal.lhs
+++ b/compiler/simplCore/OccurAnal.lhs
@@ -37,7 +37,7 @@ import UniqFM ( keysUFM, intersectUFM_C, foldUFM_Directly )
import Util ( mapAndUnzip, filterOut )
import Bag
import Outputable
-
+import FastString
import Data.List
\end{code}
@@ -1090,6 +1090,10 @@ data OccEncl
| OccVanilla -- Argument of function, body of lambda, scruintee of case etc.
-- Do inline into constructor args here
+instance Outputable OccEncl where
+ ppr OccRhs = ptext (sLit "occRhs")
+ ppr OccVanilla = ptext (sLit "occVanilla")
+
type CtxtTy = [Bool]
-- [] No info
--