#70: Uninformative error in do binding

View: New views
2 Messages — Rating Filter:   Alert me  

#70: Uninformative error in do binding

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#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@...
http://www.haskell.org/mailman/listinfo/hugs-bugs

Re: #70: Uninformative error in do binding

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#70: Uninformative error in do binding
---------------------+------------------------------------------------------
  Reporter:  neil    |       Owner:  nobody
      Type:  defect  |      Status:  closed
  Priority:  major   |   Milestone:        
 Component:  hugs    |     Version:  200609
Resolution:  fixed   |    Keywords:        
---------------------+------------------------------------------------------
Changes (by ross):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 changed the message to "pattern match failure in do expression".

--
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@...
http://www.haskell.org/mailman/listinfo/hugs-bugs
LightInTheBox - Buy quality products at wholesale price!