[Hugs] #70: Uninformative error in do binding
Hugs
trac at galois.com
Fri May 11 15:29:37 EDT 2007
#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
More information about the Hugs-Bugs
mailing list