[project @ 2002-02-13 15:14:06 by simonpj]
authorsimonpj <unknown>
Wed, 13 Feb 2002 15:14:07 +0000 (15:14 +0000)
committersimonpj <unknown>
Wed, 13 Feb 2002 15:14:07 +0000 (15:14 +0000)
commite70309951a888dfa8629b2e07dbc30795550f868
treef71a801a72c8babe318879d18538c8d6ce55ab3d
parentd113ae78f633ea5b12a24e4fcb7693d961869d3e
[project @ 2002-02-13 15:14:06 by simonpj]
--------------------------------------------
Fix a bugs in type inference for rank-N types
--------------------------------------------

We discovered this bug when looking at type rules!

1. When type checking (e :: sigma-ty), we must specialise sigma-ty,
   else we lose the invariant that tcMonoType has.

2. In tcExpr_id, we should pass in a Hole tyvar not an ordinary tyvar.

As usual, I moved some functions around in consequence.
ghc/compiler/typecheck/Inst.lhs
ghc/compiler/typecheck/TcExpr.lhs
ghc/compiler/typecheck/TcSimplify.lhs
ghc/compiler/typecheck/TcType.lhs
ghc/compiler/typecheck/TcUnify.lhs