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:
bfa3486
)
[project @ 2001-02-08 15:00:28 by simonmar]
author
simonmar
<unknown>
Thu, 8 Feb 2001 15:00:28 +0000
(15:00 +0000)
committer
simonmar
<unknown>
Thu, 8 Feb 2001 15:00:28 +0000
(15:00 +0000)
Allow zonking an unbound type variable with kind openTypeKind with voidTy.
I'm fairly sure this is ok - Simon?
ghc/compiler/typecheck/TcType.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcType.lhs
b/ghc/compiler/typecheck/TcType.lhs
index
3d260dd
..
73c183b
100644
(file)
--- a/
ghc/compiler/typecheck/TcType.lhs
+++ b/
ghc/compiler/typecheck/TcType.lhs
@@
-346,7
+346,7
@@
zonkTcTypeToType ty = zonkType zonk_unbound_tyvar ty
-- Void if it has kind Lifted
-- :Void otherwise
zonk_unbound_tyvar tv
- | kind == liftedTypeKind
+ | kind == liftedTypeKind || kind == openTypeKind
= tcPutTyVar tv voidTy -- Just to avoid creating a new tycon in
-- this vastly common case
| otherwise