GADTs: malformed constructor signature

Ralf Hinze ralf at informatik.uni-bonn.de
Sat Nov 19 06:44:13 EST 2005


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



More information about the Glasgow-haskell-bugs mailing list