[commit: ghc] master: Enable building Cabal with parsec (36fe21a)

git at git.haskell.org git at git.haskell.org
Tue Aug 1 20:13:46 UTC 2017


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

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

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

commit 36fe21aa3fe5abe1cef0104b20c296ac9385658d
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Aug 1 11:05:18 2017 -0400

    Enable building Cabal with parsec
    
    Cabal's parser has been rewritten in terms of Parsec (which is not
    enabled yet in Cabal-2.0 by default, but can be enabled by a cabal
    flag). The plan for Cabal is to drop support for the non-parsec parser,
    so we need to prepare GHC to cope with new situation.
    
    However, this means that lib:Cabal requires three new library
    dependency submodules,
    
     - parsec
     - text
     - mtl
    
    What complicates matters is that we need to build `ghc-cabal` early on
    during the bootstrap phase which currently needs to invoke `ghc --make`
    directly. So these additional dependencies need to be integrated into
    the monolithic `ghc --make` invocation which produces the `ghc-cabal`
    executable.
    
    Test Plan: `./validate --fast` passed
    
    Reviewers: austin, bgamari
    
    Subscribers: erikd, phadej, rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3757


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

36fe21aa3fe5abe1cef0104b20c296ac9385658d
 configure.ac            |  4 ++--
 ghc.mk                  | 11 +++++++++--
 libraries/mtl           |  1 +
 libraries/parsec        |  1 +
 libraries/text          |  1 +
 mk/warnings.mk          |  5 +++++
 packages                |  3 +++
 rules/sdist-ghc-file.mk | 31 +++++++++++++++++++++++++++++++
 utils/ghc-cabal/ghc.mk  | 25 ++++++++++++++++++++++---
 9 files changed, 75 insertions(+), 7 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 36fe21aa3fe5abe1cef0104b20c296ac9385658d


More information about the ghc-commits mailing list