3 ms·
Haskell has a library called monad-validate that I think is a great example for both what the monad laws are important for, and how it's important that one unde
by marcosdumay 5y ago
Haskell has a library called monad-validate that I think is a great example for both what the monad laws are important for, and how it's important that one understand their reasons, instead of just following advice literally on every possible situation.
Just as yo want to break addition commutativity so you can approximate real numbers, there are times when you want something to behave like a monad, but not follow its laws.