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:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to