projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0b700
)
[project @ 2001-09-17 10:35:46 by simonpj]
author
simonpj
<unknown>
Mon, 17 Sep 2001 10:35:46 +0000
(10:35 +0000)
committer
simonpj
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/MkId.lhs
b/ghc/compiler/basicTypes/MkId.lhs
index
32f72dc
..
a44e083
100644
(file)
--- a/
ghc/compiler/basicTypes/MkId.lhs
+++ b/
ghc/compiler/basicTypes/MkId.lhs
@@
-791,7
+791,7
@@
seqId
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