[project @ 2001-09-17 10:35:46 by simonpj]
authorsimonpj <unknown>
Mon, 17 Sep 2001 10:35:46 +0000 (10:35 +0000)
committersimonpj <unknown>
Mon, 17 Sep 2001 10:35:46 +0000 (10:35 +0000)
Bogon in defn of seq (caused lint error in PrelIO)

ghc/compiler/basicTypes/MkId.lhs

index 32f72dc..a44e083 100644 (file)
@@ -791,7 +791,7 @@ seqId
     ty  = mkForAllTys [alphaTyVar,betaTyVar]
                      (mkFunTy alphaTy (mkFunTy betaTy betaTy))
     [x,y] = mkTemplateLocals [alphaTy, betaTy]
     ty  = mkForAllTys [alphaTyVar,betaTyVar]
                      (mkFunTy alphaTy (mkFunTy betaTy betaTy))
     [x,y] = mkTemplateLocals [alphaTy, betaTy]
-    rhs = mkLams [alphaTyVar,betaTyVar,x] (Case (Var x) x [(DEFAULT, [], Var y)])
+    rhs = mkLams [alphaTyVar,betaTyVar,x,y] (Case (Var x) x [(DEFAULT, [], Var y)])
 \end{code}
 
 @getTag#@ is another function which can't be defined in Haskell.  It needs to
 \end{code}
 
 @getTag#@ is another function which can't be defined in Haskell.  It needs to