[commit: ghc] wip/cabal-parsec: Enable building Cabal with parsec (0d11176)
git at git.haskell.org
git at git.haskell.org
Tue Jul 18 21:59:03 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/cabal-parsec
Link : http://ghc.haskell.org/trac/ghc/changeset/0d11176c20feb3e8627e6297735b1b952613896a/ghc
>---------------------------------------------------------------
commit 0d11176c20feb3e8627e6297735b1b952613896a
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Tue Jul 18 23:08:55 2017 +0200
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
dependencies:
- 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.
>---------------------------------------------------------------
0d11176c20feb3e8627e6297735b1b952613896a
.gitmodules | 12 ++++++++++++
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, 85 insertions(+), 5 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 0d11176c20feb3e8627e6297735b1b952613896a
More information about the ghc-commits
mailing list