[commit: ghc] master: Export `Traversable()` and `Foldable()` from Prelude (c0fa383)

git at git.haskell.org git at git.haskell.org
Mon Sep 15 06:39:01 UTC 2014


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

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

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

commit c0fa383d9109800a4e46a81b418f1794030ba1bd
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Sep 15 08:37:30 2014 +0200

    Export `Traversable()` and `Foldable()` from Prelude
    
    This exposes *only* the type-classes w/o any of their methods.
    This is the very first step for implementing BPP (see #9586), which
    already requires breaking up several import-cycles leading back to `Prelude`.
    
    Ideally, importing `Prelude` should be avoided in most `base` modules,
    as `Prelude` does not define any entities, but rather re-exports
    existing ones.
    
    Test Plan: validate passes
    
    Reviewers: ekmett, austin
    
    Reviewed By: ekmett, austin
    
    Subscribers: simonmar, ezyang, carter
    
    Differential Revision: https://phabricator.haskell.org/D209
    
    GHC Trac Issues: #9586


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

c0fa383d9109800a4e46a81b418f1794030ba1bd
 compiler/hsSyn/HsDecls.lhs                         |  7 ++--
 compiler/utils/BooleanFormula.hs                   |  4 +++
 libraries/base/Control/Applicative.hs              | 17 +++++++---
 libraries/base/Control/Arrow.hs                    |  6 ++--
 libraries/base/Control/Category.hs                 |  7 ++--
 libraries/base/Control/Monad/Fix.hs                | 11 +++++--
 libraries/base/Data/Data.hs                        | 19 +++++++----
 libraries/base/Data/Foldable.hs                    | 37 ++++++++++++----------
 libraries/base/Data/Function.hs                    |  5 +--
 libraries/base/Data/Functor.hs                     |  3 +-
 libraries/base/Data/Traversable.hs                 | 18 +++++++----
 libraries/base/Data/Version.hs                     | 20 +++++++-----
 libraries/base/Debug/Trace.hs                      |  6 ++--
 libraries/base/GHC/Exts.hs                         |  6 ++--
 libraries/base/GHC/Stack.hsc                       |  5 ++-
 libraries/base/Prelude.hs                          |  5 +++
 testsuite/tests/ghci/scripts/T4175.stdout          |  2 ++
 testsuite/tests/ghci/scripts/T7627.stdout          |  2 ++
 testsuite/tests/ghci/scripts/ghci011.stdout        |  4 +++
 testsuite/tests/perf/compiler/all.T                |  9 ++++--
 .../tests/typecheck/should_compile/FD2.stderr      |  4 +--
 21 files changed, 131 insertions(+), 66 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 c0fa383d9109800a4e46a81b418f1794030ba1bd


More information about the ghc-commits mailing list