From 965782fa4a10ece58252c57a477bc851f06ef9d3 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 8 Sep 2010 15:05:10 +0000 Subject: [PATCH] Add Outputable instance for OccEncl --- compiler/simplCore/OccurAnal.lhs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/simplCore/OccurAnal.lhs b/compiler/simplCore/OccurAnal.lhs index 7ac45cc..22e042a 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 -- -- 1.7.10.4