In a pattern binding, a type sig in the pattern cannot bind a type variable
authorsimonpj@microsoft.com <unknown>
Sat, 27 Oct 2007 15:33:30 +0000 (15:33 +0000)
committersimonpj@microsoft.com <unknown>
Sat, 27 Oct 2007 15:33:30 +0000 (15:33 +0000)
commit2f647ec6dfaa21d0dfa9c130cbe92abffc8006a1
tree9d9d077209651efc47f0f503d7a142c019585a4e
parentcc51a698c0938edaa3ccc95db19150bbaec6f795
In a pattern binding, a type sig in the pattern cannot bind a type variable

In a pattern binding with a pattern type signature, such as

(Just (x::a)) = e

the pattern type signature cannot bind type variables.  Hence
'a' must be in scope already for the above example to be legal.

This has been the situation for some time, but Dan changed it when
adding view patterns.  This one-line change restores the old behaviour.
compiler/rename/RnPat.lhs