[commit: ghc] master: Export `Monoid(..)`/`Foldable(..)`/`Traversable(..)` from Prelude (b8f5839)

git at git.haskell.org git at git.haskell.org
Sun Sep 21 21:29:04 UTC 2014


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

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

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

commit b8f583928fa6cb5371a872fc73080d2002dd87d9
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sun Sep 21 23:22:19 2014 +0200

    Export `Monoid(..)`/`Foldable(..)`/`Traversable(..)` from Prelude
    
    This finally exposes also the methods of these 3 classes in the Prelude
    in order to allow to define basic class instances w/o needing imports.
    
    This almost completes the primary goal of #9586
    
    NOTE: `fold`, `foldl'`, `foldr'`, and `toList` are not exposed yet,
          as they require upstream fixes for at least `containers` and
          `bytestring`, and are not required for defining basic instances.
    
    Reviewed By: ekmett, austin
    
    Differential Revision: https://phabricator.haskell.org/D236


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

b8f583928fa6cb5371a872fc73080d2002dd87d9
 compiler/deSugar/MatchLit.lhs                      |  2 ++
 compiler/ghci/RtClosureInspect.hs                  |  2 ++
 compiler/hsSyn/HsBinds.lhs                         |  2 +-
 compiler/iface/TcIface.lhs                         |  2 ++
 compiler/main/Packages.lhs                         |  2 ++
 compiler/rename/RnBinds.lhs                        |  3 ++
 compiler/rename/RnSource.lhs                       |  2 ++
 compiler/typecheck/TcEvidence.lhs                  |  2 ++
 compiler/typecheck/TcHsSyn.lhs                     |  2 ++
 compiler/typecheck/TcPatSyn.lhs                    |  2 ++
 compiler/types/Coercion.lhs                        |  2 ++
 compiler/utils/Pair.lhs                            |  4 ++-
 compiler/utils/UniqFM.lhs                          |  7 ++++-
 libraries/base/Prelude.hs                          | 36 +++++++++++++++-------
 libraries/base/changelog.md                        |  7 +++++
 mk/validate-settings.mk                            |  9 ++++++
 testsuite/tests/ghci.debugger/mdo.hs               |  1 +
 .../tests/ghci.debugger/scripts/break018.stdout    |  8 ++---
 .../tests/ghci.debugger/scripts/dynbrk004.stdout   |  2 +-
 testsuite/tests/ghci/scripts/T4175.stdout          |  2 ++
 testsuite/tests/ghci/scripts/T7627.stdout          |  6 ++--
 testsuite/tests/ghci/scripts/ghci011.stdout        |  7 +++--
 testsuite/tests/ghci/scripts/ghci020.stdout        |  1 +
 testsuite/tests/mdo/should_run/mdorun002.hs        |  1 +
 testsuite/tests/quasiquotation/T7918.hs            |  1 +
 .../tests/typecheck/should_compile/DfltProb1.hs    |  1 +
 utils/hpc/HpcMarkup.hs                             |  1 -
 utils/runghc/runghc.hs                             |  1 -
 28 files changed, 93 insertions(+), 25 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 b8f583928fa6cb5371a872fc73080d2002dd87d9


More information about the ghc-commits mailing list