[Haskell-beginners] Maybe a -> Maybe b

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Fri Aug 25 12:45:37 UTC 2017


> Maybe implements the Functor type class (as an exercise, you can try to
> figure out the implementation), therefore you can simply use fmap, which
> in the case of Maybe, has type (a -> b) -> Maybe a -> Maybe b

Thanks I reallized this after sending the email

thanks

Frederic


More information about the Beginners mailing list