Pattern match failure handling

1 view
Skip to first unread message

Gracjan Polak

unread,
Apr 18, 2010, 9:06:28 AM4/18/10
to ha...@googlegroups.com
 Now when server encounters pattern match failure it outputs:
 
 src\AppControl.hs:43:24: Pattern match failure in do expression
 
 Really helps when running GHCi under Emacs. This message is parsed
 and by clicking on the link Emacs automatically goes to the specific
 file and line. Other editors may have similar feature.

Question:

How to peacefully handle undefined and error "xx"? The above is just a tiny wrapper around WebT.fail method.

--
Gracjan

--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to happs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/happs?hl=en.
added-debug_trace_trace-message-showing-place-where-pattern-patch-failure-happened.dpatch
Reply all
Reply to author
Forward
0 new messages