RE: GADT pattern match in non-rigid context

2008-09-02 Thread Simon Peyton-Jones
Wolfgang You need to say that type "t", the case scrutinee, has. You can use a type signature for that. Presumably the way that a' is instantiated doesn't matter, but GHC isn't clever enough to realise that. So I just instantiated it to (). The result compiles fine. Simon {-# LANGUAGE Rank

RE: GADT pattern match in non-rigid context

2007-12-24 Thread Simon Peyton-Jones
| >> You should be giving a type signature to rewrap! That should fix it. | > | > Thanks, all works fine now :-) | | it would be great if the error message suggested giving a type signature | as a solution (or maybe it already does, in the HEAD?) Good point: I'll do that. Simon | >> | -Ori

Re: GADT pattern match in non-rigid context

2007-12-23 Thread Isaac Dupree
Neil Mitchell wrote: Hi Simon, You should be giving a type signature to rewrap! That should fix it. Thanks, all works fine now :-) it would be great if the error message suggested giving a type signature as a solution (or maybe it already does, in the HEAD?) Isaac Neil | -Origi

Re: GADT pattern match in non-rigid context

2007-12-17 Thread Neil Mitchell
Hi Simon, > You should be giving a type signature to rewrap! That should fix it. Thanks, all works fine now :-) Neil > > | -Original Message- > | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > | Neil Mitchell > | Sent: 17 December 2007 16:23 > | To: glasgow-haskell-us

RE: GADT pattern match in non-rigid context

2007-12-17 Thread Simon Peyton-Jones
You should be giving a type signature to rewrap! That should fix it. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of | Neil Mitchell | Sent: 17 December 2007 16:23 | To: glasgow-haskell-users@haskell.org | Subject: GADT pattern match in non-rig