
10 Aug
2007
10 Aug
'07
1:49 a.m.
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@gmail.com