For some kinds of monads, like maybe, that’s all you need.
But, some other kinds of monads need more logic. List is one, IO is another.
In OOP language, sometimes all you need is the parent class. But sometimes you need to extend the parent and add more.
https://hackage.haskell.org/package/base-4.14.0.0/docs/src/G...
For some kinds of monads, like maybe, that’s all you need.
But, some other kinds of monads need more logic. List is one, IO is another.
In OOP language, sometimes all you need is the parent class. But sometimes you need to extend the parent and add more.