Add Monad instance for `((,) a)` (#10190)
authorFumiaki Kinoshita <fumiexcel@gmail.com>
Wed, 25 Mar 2015 04:30:25 +0000 (13:30 +0900)
committerHerbert Valerio Riedel <hvr@gnu.org>
Wed, 25 Mar 2015 13:47:22 +0000 (14:47 +0100)
commit9db005a444722e31aca1956b058e069bcf3cacbd
tree47c433696d584c5a3138eff13e638832027d30c1
parent33cfa5ff9db4e7886b3e7c2eed5ac1c75436bc4c
Add Monad instance for `((,) a)` (#10190)

This was proposed a couple of times in the past, e.g.

 - https://mail.haskell.org/pipermail/libraries/2011-November/017153.html
 - https://mail.haskell.org/pipermail/libraries/2013-July/020446.html

but its implementation had been blocked by the fact that `Monoid` wasn't
in scope where the `Monad` class was defined. Since the AMP/FTP restructuring
this is no longer the case.
libraries/base/GHC/Base.hs
libraries/base/changelog.md
testsuite/tests/ghci/scripts/T7627.stdout
testsuite/tests/ghci/scripts/ghci011.stdout
testsuite/tests/typecheck/should_fail/tcfail181.stderr