[commit: ghc] master: Simplify Package data type (#663) (798a716)

git at git.haskell.org git at git.haskell.org
Tue Oct 23 20:19:29 UTC 2018


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

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

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

commit 798a716b16370e359f5892f327f0bd625c08a4a0
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Wed Aug 29 02:33:21 2018 +0100

    Simplify Package data type (#663)
    
    I noticed that all packages we build have Cabal files now, which means we no longer need to distinguish between C and Haskell packages. This leads to a lot of simplifications and removal of unsafe functions.


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

798a716b16370e359f5892f327f0bd625c08a4a0
 hadrian.cabal                            |   1 -
 src/Context.hs                           |  24 +----
 src/Context/Type.hs                      |   8 +-
 src/Expression.hs                        |   4 +-
 src/Hadrian/Haskell/Cabal.hs             |  19 ++--
 src/Hadrian/Haskell/Cabal/CabalData.hs   |   2 +-
 src/Hadrian/Haskell/Cabal/PackageData.hs |   2 +-
 src/Hadrian/Haskell/Cabal/Parse.hs       |  12 +--
 src/Hadrian/Oracles/TextFile.hs          |  13 +--
 src/Hadrian/Oracles/TextFile/Rules.hs    |  28 +++---
 src/Hadrian/Oracles/TextFile/Type.hs     |   4 +-
 src/Hadrian/Package.hs                   |  93 +++++++++----------
 src/Hadrian/Package/Type.hs              |  45 ----------
 src/Hadrian/Utilities.hs                 |  13 ++-
 src/Packages.hs                          | 150 +++++++++++++++----------------
 src/Rules/BinaryDist.hs                  |   4 +-
 src/Rules/Documentation.hs               |  10 +--
 src/Rules/Library.hs                     |   7 +-
 src/Rules/Selftest.hs                    |   8 +-
 src/Settings/Builders/Cabal.hs           |  11 ++-
 src/Settings/Builders/Ghc.hs             |   5 +-
 src/Settings/Builders/Haddock.hs         |  26 +++---
 src/Utilities.hs                         |   9 +-
 23 files changed, 206 insertions(+), 292 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 798a716b16370e359f5892f327f0bd625c08a4a0


More information about the ghc-commits mailing list