Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init/control/state): flip typeclass args for monad_state_trans (#461
) As of 3.7.0c, typeclass resolution solves instance arguments from right-to-left (via #139). #139 also explicitly flips the typeclass arguments of definitions like monad_reader_trans, but does not flip the typeclass arguments of monad_state_trans, causing the following example: ``` def ex1 : option_t (state_t string id) string := do s <- get, option_t.mk $ return s ``` to return the error: `maximum class-instance resolution depth has been reached`. Flipping the typeclass arguments for monad_state_trans fixes this particular issue. Closes #460
- Loading branch information