[Haskell-cafe] A small error

David House dmhouse at gmail.com
Sat May 19 10:55:11 EDT 2007


On 19/05/07, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
> How about this?
>
>   do
>     y <- if x < 0
>        then do ...
>        else do ...

As with many other things in Haskell, the rule is "Give it a go and
see if it works!" You should find that the above code runs fine.

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list