TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What the Heck Is a Monad

4 pointsby jaxonduover 9 years ago

2 comments

codygmanover 9 years ago
Before trying to answer this question, it might be useful to see the reasons for using Monads along with examples in Phillip Wadler&#x27;s Monads For Functional Programming[0].<p>From there I like to go to &quot;You could have invented monads!&quot;[1].<p>Then you might want to checkout &quot;Monads as computation&quot;[2].<p>From there look at the huge guide of &quot;All about monads[3].<p>If you are still confused you haven&#x27;t made enough programs using monads yet. Try taking some of the examples (especially from [0]) and modifying them to do something else.<p>0: <a href="http:&#x2F;&#x2F;homepages.inf.ed.ac.uk&#x2F;wadler&#x2F;papers&#x2F;marktoberdorf&#x2F;baastad.pdf" rel="nofollow">http:&#x2F;&#x2F;homepages.inf.ed.ac.uk&#x2F;wadler&#x2F;papers&#x2F;marktoberdorf&#x2F;ba...</a><p>1: <a href="http:&#x2F;&#x2F;blog.sigfpe.com&#x2F;2006&#x2F;08&#x2F;you-could-have-invented-monads-and.html" rel="nofollow">http:&#x2F;&#x2F;blog.sigfpe.com&#x2F;2006&#x2F;08&#x2F;you-could-have-invented-monad...</a><p>2: <a href="https:&#x2F;&#x2F;wiki.haskell.org&#x2F;Monads_as_computation" rel="nofollow">https:&#x2F;&#x2F;wiki.haskell.org&#x2F;Monads_as_computation</a><p>3: <a href="https:&#x2F;&#x2F;wiki.haskell.org&#x2F;All_About_Monads#Introduction_2" rel="nofollow">https:&#x2F;&#x2F;wiki.haskell.org&#x2F;All_About_Monads#Introduction_2</a>
Tomteover 9 years ago
A monad is a device to frighten off newcomers from Haskell and to show your friends that you&#x27;re smart.<p>Oh, and seriously, it&#x27;s something mathematical. But no one on the Internet talks about that, so I have no idea, really.