
26 Mar
2012
26 Mar
'12
3:54 p.m.
* Ting Lei
I was writing a code trying to use MonadPlus to detect some error cases (representing missing values etc. in pure code).
You are probably looking for the MonadError class. There's also the MonadLogic class (which allows to literally detect mzero), but if you simply need to catch errors, it is not as appropriate as MonadError. -- Roman I. Cheplyaka :: http://ro-che.info/