[commit: ghc] master: Add liftA2 to Applicative class (a2f39da)

git at git.haskell.org git at git.haskell.org
Mon Feb 6 00:49:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a2f39da0461b5da62a9020b0d98a1ce2765dd700/ghc

>---------------------------------------------------------------

commit a2f39da0461b5da62a9020b0d98a1ce2765dd700
Author: David Feuer <david.feuer at gmail.com>
Date:   Sun Feb 5 19:43:31 2017 -0500

    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


>---------------------------------------------------------------

a2f39da0461b5da62a9020b0d98a1ce2765dd700
 compiler/prelude/PrelNames.hs                      |  3 +-
 compiler/typecheck/TcGenFunctor.hs                 | 15 +++--
 docs/users_guide/8.2.1-notes.rst                   |  6 ++
 libraries/base/Control/Applicative.hs              |  8 ++-
 libraries/base/Control/Monad/ST/Lazy/Imp.hs        | 15 +++++
 libraries/base/Data/Bitraversable.hs               | 13 ++--
 libraries/base/Data/Complex.hs                     |  2 +
 libraries/base/Data/Functor/Compose.hs             | 11 +++-
 libraries/base/Data/Functor/Const.hs               |  1 +
 libraries/base/Data/Functor/Identity.hs            |  1 +
 libraries/base/Data/Functor/Product.hs             |  3 +-
 libraries/base/Data/Functor/Utils.hs               |  8 +++
 libraries/base/Data/List/NonEmpty.hs               |  9 +--
 libraries/base/Data/Semigroup.hs                   | 13 ++--
 libraries/base/Data/Traversable.hs                 |  2 +-
 libraries/base/GHC/Base.hs                         | 75 +++++++++++++++++-----
 libraries/base/GHC/Conc/Sync.hs                    |  2 +
 libraries/base/GHC/Generics.hs                     | 39 ++++++-----
 libraries/base/GHC/ST.hs                           |  1 +
 libraries/base/Text/ParserCombinators/ReadP.hs     |  1 +
 libraries/base/Text/ParserCombinators/ReadPrec.hs  |  1 +
 libraries/base/changelog.md                        |  7 ++
 libraries/base/tests/T13191.hs                     | 71 ++++++++++++++++++++
 libraries/base/tests/T13191.stdout                 |  1 +
 libraries/base/tests/all.T                         |  8 +++
 .../tests/simplCore/should_compile/T8848.stderr    | 48 ++++++++++----
 26 files changed, 285 insertions(+), 79 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc a2f39da0461b5da62a9020b0d98a1ce2765dd700


More information about the ghc-commits mailing list