[commit: ghc] wip/amp: Make Applicative a superclass of Monad (88c9403)

git at git.haskell.org git at git.haskell.org
Tue Apr 22 11:10:35 UTC 2014


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

On branch  : wip/amp
Link       : http://ghc.haskell.org/trac/ghc/changeset/88c9403264950326e39a05f262bbbb069cf12977/ghc

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

commit 88c9403264950326e39a05f262bbbb069cf12977
Author: Austin Seipp <austin at well-typed.com>
Date:   Tue Apr 22 06:09:40 2014 -0500

    Make Applicative a superclass of Monad
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

88c9403264950326e39a05f262bbbb069cf12977
 compiler/utils/Maybes.lhs                          |    3 +
 compiler/utils/Stream.hs                           |    3 +
 libraries/base/Control/Applicative.hs              |  204 +-------------------
 libraries/base/Control/Arrow.hs                    |    8 +
 libraries/base/Control/Monad.hs                    |   62 ++++--
 libraries/base/Control/Monad/ST/Lazy/Imp.hs        |    4 +
 libraries/base/Data/Either.hs                      |    5 +
 libraries/base/Data/Maybe.hs                       |   16 ++
 libraries/base/Data/Monoid.hs                      |   99 +---------
 libraries/base/Data/Proxy.hs                       |   11 ++
 libraries/base/GHC/Base.lhs                        |  203 ++++++++++++++++++-
 libraries/base/GHC/Conc/Sync.lhs                   |   12 +-
 libraries/base/GHC/Event/Array.hs                  |    2 +-
 libraries/base/GHC/Event/EPoll.hsc                 |    1 -
 libraries/base/GHC/Event/Internal.hs               |    1 -
 libraries/base/GHC/Event/Manager.hs                |    1 -
 libraries/base/GHC/Event/Poll.hsc                  |    1 -
 libraries/base/GHC/Event/TimerManager.hs           |    1 -
 libraries/base/GHC/GHCi.hs                         |    9 +-
 libraries/base/GHC/ST.lhs                          |    4 +
 libraries/base/Prelude.hs                          |    3 +-
 libraries/base/Text/ParserCombinators/ReadP.hs     |   51 +++--
 libraries/base/Text/ParserCombinators/ReadPrec.hs  |   11 +-
 .../template-haskell/Language/Haskell/TH/Syntax.hs |    4 +-
 24 files changed, 373 insertions(+), 346 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 88c9403264950326e39a05f262bbbb069cf12977


More information about the ghc-commits mailing list