[Haskell-beginners] Sum a tuple of Monoids

Lai Boon Hui laiboonh at gmail.com
Tue Nov 1 15:42:06 UTC 2016


Hi all,

Is it possible to sum a tuple of monoids for example

sum (Just 1, Nothing)

expected result Just 1

sum (Just 1, Just 2)

expected result Just 3

-- 
Best Regards,
Boon Hui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161101/674cacf4/attachment.html>


More information about the Beginners mailing list