[commit: ghc] wip/prettyprinter: Port to prettyprinter proper (7d9329e)

git at git.haskell.org git at git.haskell.org
Thu Jan 18 18:08:29 UTC 2018


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

On branch  : wip/prettyprinter
Link       : http://ghc.haskell.org/trac/ghc/changeset/7d9329e4a4f2cd2f76386a129823de79892b9718/ghc

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

commit 7d9329e4a4f2cd2f76386a129823de79892b9718
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Sep 12 06:32:10 2017 -0400

    Port to prettyprinter proper


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

7d9329e4a4f2cd2f76386a129823de79892b9718
 .gitmodules             | 3 +++
 ghc.mk                  | 7 +++++--
 libraries/prettyprinter | 1 +
 packages                | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index 49e5ab9..cfb1791 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -139,3 +139,6 @@
 [submodule "libraries/prettyprinter-core"]
 	path = libraries/prettyprinter-core
 	url = https://github.com/bollu/prettyprinter-core.git
+[submodule "libraries/prettyprinter"]
+	path = libraries/prettyprinter
+	url = git at github.com:quchen/prettyprinter.git
diff --git a/ghc.mk b/ghc.mk
index 3b6c19b..1a0c96b 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -420,7 +420,10 @@ else # CLEANING
 # programs such as GHC and ghc-pkg, that we do not assume the stage0
 # compiler already has installed (or up-to-date enough).
 
-PACKAGES_STAGE0 = binary text transformers mtl parsec Cabal/Cabal hpc ghc-boot-th ghc-boot template-haskell ghci prettyprinter-core
+PACKAGES_STAGE0 = \
+    binary text transformers mtl parsec Cabal/Cabal hpc ghc-boot-th ghc-boot template-haskell ghci \
+    prettyprinter/prettyprinter
+
 ifeq "$(Windows_Host)" "NO"
 PACKAGES_STAGE0 += terminfo
 endif
@@ -459,7 +462,7 @@ PACKAGES_STAGE1 += ghc-boot-th
 PACKAGES_STAGE1 += ghc-boot
 PACKAGES_STAGE1 += template-haskell
 PACKAGES_STAGE1 += ghc-compact
-PACKAGES_STAGE1 += prettyprinter-core
+PACKAGES_STAGE1 += prettyprinter/prettyprinter
 
 ifeq "$(HADDOCK_DOCS)" "YES"
 PACKAGES_STAGE1 += xhtml
diff --git a/libraries/prettyprinter b/libraries/prettyprinter
new file mode 160000
index 0000000..973be20
--- /dev/null
+++ b/libraries/prettyprinter
@@ -0,0 +1 @@
+Subproject commit 973be208c28f0ec34c9cf7874bea9718996db776
diff --git a/packages b/packages
index fbc24bb..846e475 100644
--- a/packages
+++ b/packages
@@ -41,7 +41,7 @@ ghc-tarballs                 windows     ghc-tarballs.git                -
 libffi-tarballs              -           -                               -
 utils/hsc2hs                 -           -                               ssh://git@github.com/haskell/hsc2hs.git
 utils/haddock                -           -                               ssh://git@github.com/haskell/haddock.git
-libraries/prettyprinter-core -           -                               https://github.com/bollu/prettyprinter-core.git
+libraries/prettyprinter/prettyprinter -  -                               https://github.com/quchen/prettyprinter.git
 libraries/array              -           -                               -
 libraries/binary             -           -                               https://github.com/kolmodin/binary.git
 libraries/bytestring         -           -                               https://github.com/haskell/bytestring.git



More information about the ghc-commits mailing list