[Haskell-cafe] Expression dye

Andrew Coppin andrewcoppin at btinternet.com
Thu Jul 15 13:20:14 EDT 2010

Stephen Tetley wrote:
> On 14 July 2010 22:37, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>> (The small problem with the approach above, of course, is that as soon as
>> the function wants to do comparisons or take flow control decisions, you've
>> got trouble. It's not impossible to solve, but it *is* a lot of work...)
> Hi Andrew
> You could try pairing both the Dye representation and a genuinely
> numeric one in the same type.

Yes. That's the obvious way to do this. But, like I said, " a lot of 
work". Especially if somebody else has already done it for me. ;-)

More information about the Haskell-Cafe mailing list