On Fri, Dec 12, 2003 at 08:55:59PM +0000, Graham Klyne wrote:
> At 14:17 12/12/03 -0500, Derek Elkins wrote:
> >This will also provide a migration path if you want a more featureful
> >monad. (or_maybe is mplus, fail or mzero can be used for Nothing when
> >you explicitly want to fail).
>> Is this or_maybe (and friends) actually defined in any of the standard
> libraries? (Google found only one hit, in an old IRC log.)
The or_maybe, which he's suggesting I replace with mplus, is from my code
(which obviously Derek has taken a look at). It's just a little function
to try one function and if it returns Nothing, then try another.
--
David Roundy
http://www.abridgegame.org