GADT record syntax and contexts

Isaac Dupree ml at isaac.cedarswampstudios.org
Tue Jun 16 12:13:01 EDT 2009


Philip Hölzenspies wrote:
> (A)    data RecContTest a where
>     Show a => C { showable :: a } :: RecContTest a
> 
> (B)    data RecContTest a where
>     C :: Show a => { showable :: a } -> RecContTest a

I like (B) better too, for any GADT record syntax... its meaning seems 
less confusing to me than the current(?) (A) syntax.

-Isaac


More information about the Glasgow-haskell-users mailing list