News for hackers. Stuff that matters.
Re:From Monads to Machine Code by gmartres on Sunday April 23, 2017 @09:42PM (#14181423)
The whole point of monads (and most other typeclasses) is that they're an abstraction. If you use a type constructor then you cannot generalize your function to work with any kind of monad, see for example the definition of `mapM` in https://hackage.haskell.org/package/base-4.9.1.0/docs/src/GH... which uses `return`

There are no comments on this comment yet.