[project @ 2005-05-26 21:37:13 by simonpj]
authorsimonpj <unknown>
Thu, 26 May 2005 21:37:13 +0000 (21:37 +0000)
committersimonpj <unknown>
Thu, 26 May 2005 21:37:13 +0000 (21:37 +0000)
commit6a18febcb53d54c077da905ac8e233b932516dc5
tree6ad99afa291c6aaf80006fb9e3da81a8c83dd7bf
parentac95e0c65cf102927cd3235f9c9e697050caec7b
[project @ 2005-05-26 21:37:13 by simonpj]
MERGE TO STABLE

Put back in a missing case for higher-rank types. When the
definition is
a) non-recursive
b) a function binding
c) lacks a type signature
we want to *infer* a perhaps-higher-rank type for the RHS,
before making a monomorphically-typed Id for the LHS.

E.g.  f = \(x :: forall a. a->a) -> (x True, x 'c')

This case got lost in the transition to 6.4

tc194 tests it
ghc/compiler/typecheck/TcBinds.lhs