[Haskell-cafe] Error Monad and strings
Gerald Gutierrez
gerald.gutierrez at gmail.com
Tue Jul 27 18:32:21 EDT 2010
Reading the Control.Monad.Error documentation, I see that the Error class
has noMsg and strMsg as its only two functions.
Now, I understand that you can define your own Error instances such as in
example 1 of the documentation, so why the need to always support strings
via noMsg/strMsg ? What uses these? And if in my code, I will never throw an
error with a string, am I supposed to implement these functions and then
ignore them?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100727/8b86e8b5/attachment.html
More information about the Haskell-Cafe
mailing list