logo       

RE: GADTs and infix?: msg#00087

lang.haskell.glasgow.bugs

Subject: RE: GADTs and infix?

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>
Google Custom Search

News | FAQ | advertise