[Hugs] #70: Uninformative error in do binding

Hugs <[email protected]> Fri, 11 May 2007 19:29:37 -0000
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <061.f9cbb33eb3dce39e991c12a9ff87c6e4@localhost>
#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
[email protected]
http://www.haskell.org/mailman/listinfo/hugs-bugs