3 ms·
> you don't even have the means to assert that they are monads, let alone take advantage of the fact that they are monads. Yes, you can. Here's an example fro
by louthy 10y ago
> you don't even have the means to assert that they are monads, let alone take advantage of the fact that they are monads.
Yes, you can.
Here's an example from version 2.0 of lang-ext (which is WIP and will be released soon) [1]:
[1] https://github.com/louthy/language-ext/blob/type-classes/LanguageExt.Tests/TypeClassMonad.cs https://github.com/louthy/language-ext/blob/type-classes/Lan...
- catnaroek 10y agoThat just shows that the result of specializing the monad laws to one specific type constructor, holds. But the monad laws themselves are inexpressible in a general form. If you can't even postulate a theory (the monad signature and its equational laws), it doesn't make sense to talk about what models of the theory exist (concrete instances).