[Haskell-cafe] Re: Writing guards shorthand

Joel Reymont joelr1 at gmail.com
Thu Apr 19 11:13:54 EDT 2007


On Apr 19, 2007, at 4:10 PM, Jón Fairbairn wrote:

> Is there some reason why you don't want
>
>    data Op = Aop Aop | Bop Bop
>    data Aop = Minus | Plus | Mul
>    data Bop = LT | GT

It's a long story. The short version is that the above will  
complicate my AST a whole lot. I had it this way before.

	Thanks, Joel

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list