[Haskell-cafe] Error Monad and strings
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe