[Haskell-cafe] Small question

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Aug 10 01:49:31 EDT 2007

Hello John,

Friday, August 10, 2007, 5:15:56 AM, you wrote:

> data Quad = BL | BR | TL | TR

> under jhc (and probably ghc at some point in the future) there is another
> very strong advantage to the second one, since it is an enumerated type,
> internally it can be represented by a simple unboxed byte that takes on
> a value of 0,1,2,or 3, which is a very enabling optimization, especially
> in the 'if' case in your code.

it was implemented and merged to ghc HEAD ~1 month ago

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list