|
RE: GADTs and infix?: msg#00087lang.haskell.glasgow.bugs
Because I am an idiot. Now fixed -- thank you for pointing it out. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs-bounces@xxxxxxxxxxx] | On Behalf Of Conal Elliott | Sent: 17 July 2006 18:52 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: GADTs and infix? | | In ghc 6.5, why does this GADT definition get accepted | | > data DArrowX :: * -> * -> * where | > First :: DArrowX a a' -> DArrowX (a,b) (a',b) | | and also this one | | > data DArrowX :: * -> * -> * where | > First :: a `DArrowX` a' -> DArrowX (a,b) (a',b) | | but this not one | | > data DArrowX :: * -> * -> * where | > First :: a `DArrowX` a' -> (a,b) `DArrowX` (a',b) | | which yields | | Malformed constructor signature: (a, b) DArrowX (a', b) | In the signature of a data constructor: a DArrowX a' -> (a, b) | DArrowX (a', b) | In the data type declaration for `DArrowX' | | Is this a bug? | | - Conal | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [GHC] #835: Expose less type/class info in an interface file, to reduce recompilation, GHC |
|---|---|
| Next by Date: | Re: [GHC] #747: Unloading a dll does not clean up properly, GHC |
| Previous by Thread: | GADTs and infix?, Conal Elliott |
| Next by Thread: | [GHC] #827: Overlapped pattern warnings for lazy patterns, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |