RE: [Haskell] Pattern Matching with rank-2 types

2006-01-23 Thread Simon Peyton-Jones
the change (or at least to comment on it). Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Oliveira | Sent: 21 January 2006 18:44 | To: Haskell Mailing List | Subject: [Haskell] Pattern Matching with rank-2 types | | Hello, | | The

[Haskell] Pattern Matching with rank-2 types

2006-01-21 Thread Bruno Oliveira
Hello, The following function is a valid function in ghc6.2.2: > func :: (forall a . [a]) -> [b] > func [] = [] However, in ghc6.4.1 it does not work anymore: Iterators4.lhs:56:6: Couldn't match `forall a. [a]' against `[a]' When checking the pattern: [] In the definition of `func':