[Haskell-beginners] Are these soloutions all valid and a good use of Haskell

Benjamin Edwards edwards.benj at gmail.com
Mon Nov 10 17:07:02 UTC 2014


> It is complining but as soon as I want to run it , I see this message :

> Non-exhaustive patterns in function acc

Yep, Maybe has two constructors, and you are only handling one. You should
handle the Nothing case as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141110/8fc97dec/attachment.html>


More information about the Beginners mailing list