[Haskell-cafe] Re: Why is this strict in its arguments? (Jules Bean)
John Lato
jwlato at gmail.com
Wed Dec 5 12:58:55 EST 2007
Wow, thanks. I had a similar function (long if/then/else chain,
fromJust) that I haven't been happy with, but couldn't see how to
improve it. Now I have a much better idea for how to fix that
function.
Thanks again,
John Lato
> the general pattern is : replace isNothing with a case match on Nothing,
> replace fromJust with a case match on Just, don't be afraid to case two
> expressions at once.
>
> Hope someone finds that useful,
>
> Jules
More information about the Haskell-Cafe
mailing list