3 ms·
It is indeed wrong. For example, the Maybe monad has no state. It sequences operations that can fail. The Error monad aborts the computation and returns an err
by light_hue_1 4y ago
It is indeed wrong.
For example, the Maybe monad has no state. It sequences operations that can fail. The Error monad aborts the computation and returns an error. Similarly, Min, Max, Product, Sum, Dual don't have an state.