Thank you.

I assumed when I saw this:
 
"we could use Maybe's
mplus to define a function,
parent s = (mother s) `mplus` (father s)"

that mplus was *already* present in Maybe.

Michael


--- On Fri, 5/1/09, Neil Mitchell <[email protected]> wrote:

From: Neil Mitchell <[email protected]>
Subject: Re: [Haskell-cafe] chr/ord?
To: "michael rice" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Anton van Straaten" 
<[email protected]>
Date: Friday, May 1, 2009, 6:32 AM

Hi

> But I get this when I try to use it:
>
> sheep.hs:30:22: Not in scope: `mplus'
> [mich...@localhost ~]$

You need to import Control.Monad. You can find answers to these sorts
of questions with Hoogle: http://haskell.org/hoogle/?hoogle=mplus

Thanks

Neil



      
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to