|
GADTs: malformed constructor signature: msg#00036lang.haskell.glasgow.bugs
Rather unituitively, GHC allows > {-# OPTIONS -fglasgow-exts #-} > > data T :: * where > C :: Int -> Int -> T but not > data T :: * where > C :: Int -> (Int -> T) Sometimes, I like to parenthesize the result type for emphasis. Cheers, Ralf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: newtype and existentials, Simon Peyton-Jones |
|---|---|
| Next by Date: | GADTs: polymorphic type arguments, Ralf Hinze |
| Previous by Thread: | newtype and existentials, Ralf Hinze |
| Next by Thread: | RE: GADTs: malformed constructor signature, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |