[Haskell-beginners] Value from Monad

Mike Meyer mwm at mired.org
Wed Apr 22 15:41:15 UTC 2015


You should use something like the maybe function to extract it after you've
returned the Just value.

On Wed, Apr 22, 2015 at 10:38 AM, Shishir Srivastava <
shishir.srivastava at gmail.com> wrote:

> Thanks ! that does work now.
>
> My next question was how do i only get "34" or "3" i.e. the Maybe value
> without wrapped in to a 'Maybe' ?
>
> Shishir
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150422/cb813ea5/attachment.html>


More information about the Beginners mailing list