Relative Content

Tag Archive for haskell

How to combine two Maybes

I’m curious of different ways of combining Maybes. There’s a small example of what I am able to achieve with a do (I reckon using the fact Maybe is a monad), however for this particular example I’m wondering if I can just use the semigroup. I tried something like