Hacker News new | ask | show | jobs
by masklinn 3082 days ago
Surely since you have monads you can just use the tools they give you?

    fn = liftM2 (+)
1 comments

That doesn't do quite the same thing; the original example gets rid of the Maybe, defaulting to 0.
> That doesn't do quite the same thing

You're missing the point entirely.

> the original example gets rid of the Maybe, defaulting to 0.

http://hackage.haskell.org/package/base-4.10.1.0/docs/Data-M...