Add liftA2 to Applicative class
authorDavid Feuer <david.feuer@gmail.com>
Mon, 6 Feb 2017 00:43:31 +0000 (19:43 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Mon, 6 Feb 2017 00:43:32 +0000 (19:43 -0500)
commita2f39da0461b5da62a9020b0d98a1ce2765dd700
tree38333e49d205beb1ee81cf51cd92ee3b9dcdad66
parent54b9b064fc7960a4dbad387481bc3a6496cc397f
Add liftA2 to Applicative class

* Make `liftA2` a method of `Applicative`.

* Add explicit `liftA2` definitions to instances in `base`.

* Add explicit invocations in `base`.

Reviewers: ekmett, bgamari, RyanGlScott, austin, hvr

Reviewed By: RyanGlScott

Subscribers: ekmett, RyanGlScott, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3031
26 files changed:
compiler/prelude/PrelNames.hs
compiler/typecheck/TcGenFunctor.hs
docs/users_guide/8.2.1-notes.rst
libraries/base/Control/Applicative.hs
libraries/base/Control/Monad/ST/Lazy/Imp.hs
libraries/base/Data/Bitraversable.hs
libraries/base/Data/Complex.hs
libraries/base/Data/Functor/Compose.hs
libraries/base/Data/Functor/Const.hs
libraries/base/Data/Functor/Identity.hs
libraries/base/Data/Functor/Product.hs
libraries/base/Data/Functor/Utils.hs
libraries/base/Data/List/NonEmpty.hs
libraries/base/Data/Semigroup.hs
libraries/base/Data/Traversable.hs
libraries/base/GHC/Base.hs
libraries/base/GHC/Conc/Sync.hs
libraries/base/GHC/Generics.hs
libraries/base/GHC/ST.hs
libraries/base/Text/ParserCombinators/ReadP.hs
libraries/base/Text/ParserCombinators/ReadPrec.hs
libraries/base/changelog.md
libraries/base/tests/T13191.hs [new file with mode: 0644]
libraries/base/tests/T13191.stdout [new file with mode: 0644]
libraries/base/tests/all.T
testsuite/tests/simplCore/should_compile/T8848.stderr