Fix scoped type variables for expression type signatures
authorsimonpj@microsoft.com <unknown>
Tue, 3 Oct 2006 13:40:56 +0000 (13:40 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 3 Oct 2006 13:40:56 +0000 (13:40 +0000)
commit9da4639011348fb6c318e3cba4b08622f811d9c4
treedd1cde93582aaf1159b799d80ac04d14d8f15357
parent1bf363052778fc39335ea3701a3229572358c51e
Fix scoped type variables for expression type signatures

I had forgotten to bring scoped type variables into scope at an expression
type signature, such as
e :: forall s. <type>
where 's' should scope over the expression e.

Like everything to do with scoped type variables, fixing this took an
unreasonable amount of work.  I'm sure there must be a better way to
achitect this!

I updated the user manual too.

A test is tc213.

It would be good to push this into 6.6.1
compiler/hsSyn/HsTypes.lhs
compiler/rename/RnBinds.lhs
compiler/rename/RnExpr.lhs
compiler/rename/RnSource.lhs
compiler/rename/RnTypes.lhs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcUnify.lhs
docs/users_guide/glasgow_exts.xml