ghc-internal: add MonadFix instance for (,)
Closes ghc/ghc#24288, implements CLC proposal https://github.com/haskell/core-libraries-committee/issues/238. Adds a MonadFix instance for tuples, permitting value recursion in the "native" writer monad and bringing consistency with the existing instance for transformers's WriterT (and, to a lesser extent, for Solo). See the CLC thread for proofs of the MonadFix laws.
Showing
- libraries/ghc-internal/src/Control/Monad/Fix.hs 6 additions, 2 deletionslibraries/ghc-internal/src/Control/Monad/Fix.hs
- testsuite/tests/interface-stability/base-exports.stdout 1 addition, 0 deletionstestsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs 1 addition, 0 deletions...ce-stability/base-exports.stdout-javascript-unknown-ghcjs
- testsuite/tests/interface-stability/base-exports.stdout-mingw32 1 addition, 0 deletions...ite/tests/interface-stability/base-exports.stdout-mingw32
- testsuite/tests/interface-stability/base-exports.stdout-ws-32 1 addition, 0 deletions...suite/tests/interface-stability/base-exports.stdout-ws-32
Loading
Please register or sign in to comment