#70: Uninformative error in do binding
--------------------+-------------------------------------------------------
Reporter: neil | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: hugs | Version: 200609
Keywords: |
--------------------+-------------------------------------------------------
Given the program:
{{{
main = do
[] <- return "test"
print "test"
> main
Program error: user error (match fails)
}}}
It would be nice if the message at least mentioned "do" somewhere. The
only way of figuring out what going wrong in a big program is to flip to
GHC.
--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/70>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@haskell.org
http://www.haskell.org/mailman/listinfo/hugs-bugs