Hacker News new | past | comments | ask | show | jobs | submit login

All Monads are, in theory if not in practice, Functors (there happens to be an instance of Functor defined for Maybe). fmap is not a functor but an arrow, in this case a function, that lifts f into the context of the Functor.



Would something like

   lift f = (return . f)
Be a functor?

[Edit: It says on Wikipedia that a functor maps a function in one category to a function in another category]




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: