patch applied (ghc): In a pattern binding, a type sig in the pattern cannot bind a type variable

Simon Peyton Jones simonpj at microsoft.com
Mon Oct 29 07:21:50 EDT 2007


Sat Oct 27 08:33:30 PDT 2007  simonpj at microsoft.com
  * 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.
  

    M ./compiler/rename/RnPat.lhs -5 +6



More information about the Cvs-ghc mailing list