[commit: ghc] wip/generics-flip: Flip around imports of GHC.Generics (cb12bdf)

git at git.haskell.org git at git.haskell.org
Mon Jul 18 13:57:16 UTC 2016


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

On branch  : wip/generics-flip
Link       : http://ghc.haskell.org/trac/ghc/changeset/cb12bdf942df5e61771d69bbb6049f3b23ed580c/ghc

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

commit cb12bdf942df5e61771d69bbb6049f3b23ed580c
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jul 18 15:54:16 2016 +0200

    Flip around imports of GHC.Generics
    
    Previously we had,
    
        GHC.Generics    imports    GHC.Ptr
        Data.Monoid     imports    GHC.Generics
        Data.Foldable   imports    GHC.Generics
        Data.Foldable   imports    Data.Monoid
        Prelude         imports    Data.Foldable
    
    Unfortunately this meant that any program importing Prelude (essentially
    all programs) would end up pulling in GHC.Generics and GHC.Ptr
    unnecessarily.
    
    Hopefully helps #12367.


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

cb12bdf942df5e61771d69bbb6049f3b23ed580c
 libraries/base/Data/Foldable.hs | 36 ----------------------
 libraries/base/Data/Monoid.hs   | 19 +++++-------
 libraries/base/GHC/Generics.hs  | 67 +++++++++++++++++++++++++++++++++++++++--
 3 files changed, 72 insertions(+), 50 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 cb12bdf942df5e61771d69bbb6049f3b23ed580c


More information about the ghc-commits mailing list