[project @ 2001-07-24 09:08:47 by simonpj]
authorsimonpj <unknown>
Tue, 24 Jul 2001 09:08:47 +0000 (09:08 +0000)
committersimonpj <unknown>
Tue, 24 Jul 2001 09:08:47 +0000 (09:08 +0000)
Add missing cases to newDemand

ghc/compiler/basicTypes/IdInfo.lhs

index b130445..8e8d3f8 100644 (file)
@@ -160,6 +160,8 @@ newDemand WwEnum         = Eval
 oldDemand :: NewDemand.Demand -> Demand.Demand
 oldDemand Abs         = WwLazy True
 oldDemand Lazy        = WwLazy False
+oldDemand Bot         = WwStrict
+oldDemand Err         = WwStrict
 oldDemand Eval        = WwStrict
 oldDemand (Seq _ _ ds) = WwUnpack True (map oldDemand ds)
 oldDemand (Call _)     = WwStrict