[Haskell-beginners] parse error

John Moore john.moore54 at gmail.com
Sun Oct 4 09:43:35 EDT 2009

     This is a function that returns true if divisible by 2. But it keeps
telling me parse error on input | . What is wrong here.
is_even n   | mod n 2 == 0
                 | True

Not sure if I need another statement for false

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091004/a11ce3e0/attachment.html

More information about the Beginners mailing list