[commit: ghc] master: Bump template-haskell to 2.14.0.0 (48f55e7)

git at git.haskell.org git at git.haskell.org
Mon Apr 9 17:14:15 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/48f55e764bb41848cff759fbea3211d8a0bbfd5b/ghc

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

commit 48f55e764bb41848cff759fbea3211d8a0bbfd5b
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Mon Apr 9 12:56:51 2018 -0400

    Bump template-haskell to 2.14.0.0
    
    Summary:
    There has been at least one breaking change to
    `template-haskell` (the removal of `qAddForeignFile`) which is
    causing packages like `th-orphans` and `singletons` to fail to build
    with GHC HEAD. Let's bump `template-haskell`'s major version number
    so that these packages can properly guard against these changes.
    
    While I was in town, I also started a `changelog` section for
    the next major version of `template-haskell`, and copied over
    finishing touches for `template-haskell-2.13.0.0`.
    
    Test Plan: ./validate
    
    Reviewers: bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4558


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

48f55e764bb41848cff759fbea3211d8a0bbfd5b
 compiler/ghc.cabal.in                             |  2 +-
 libraries/ghci/ghci.cabal.in                      |  2 +-
 libraries/template-haskell/changelog.md           | 20 ++++++++++++++++++--
 libraries/template-haskell/template-haskell.cabal |  2 +-
 testsuite/tests/th/TH_Roles2.stderr               |  2 +-
 5 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 5ffc3ce..a349904 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -59,7 +59,7 @@ Library
                    containers >= 0.5 && < 0.6,
                    array      >= 0.1 && < 0.6,
                    filepath   >= 1   && < 1.5,
-                   template-haskell == 2.13.*,
+                   template-haskell == 2.14.*,
                    hpc        == 0.6.*,
                    transformers == 0.5.*,
                    ghc-boot   == @ProjectVersionMunged@,
diff --git a/libraries/ghci/ghci.cabal.in b/libraries/ghci/ghci.cabal.in
index c22f605..595f8de 100644
--- a/libraries/ghci/ghci.cabal.in
+++ b/libraries/ghci/ghci.cabal.in
@@ -77,7 +77,7 @@ library
         filepath         == 1.4.*,
         ghc-boot         == @ProjectVersionMunged@,
         ghc-boot-th      == @ProjectVersionMunged@,
-        template-haskell == 2.13.*,
+        template-haskell == 2.14.*,
         transformers     == 0.5.*
 
     if !os(windows)
diff --git a/libraries/template-haskell/changelog.md b/libraries/template-haskell/changelog.md
index b472832..41b7eea 100644
--- a/libraries/template-haskell/changelog.md
+++ b/libraries/template-haskell/changelog.md
@@ -1,8 +1,24 @@
 # Changelog for [`template-haskell` package](http://hackage.haskell.org/package/template-haskell)
 
-## 2.13.0.0 *TBA*
+## 2.14.0.0 *TBA*
 
-  * Bundled with GHC *TBA*
+  * Introduce an `addForeignFilePath` function, as well as a corresponding
+    `qAddForeignFile` class method to `Quasi`. Unlike `addForeingFile`, which
+    takes the contents of the file as an argument, `addForeignFilePath` takes
+    as an argument a path pointing to a foreign file. A new `addForeignSource`
+    function has also been added which takes a file's contents as an argument.
+
+    The old `addForeignFile` function is now deprecated in favor of
+    `addForeignSource`, and the `qAddForeignFile` method of `Quasi` has been
+    removed entirely.
+
+  * Introduce an `addTempFile` function, as well as a corresponding
+    `qAddTempFile` method to `Quasi`, which requests a temporary file of
+    a given suffix.
+
+## 2.13.0.0 *March 2018*
+
+  * Bundled with GHC 8.4.1
 
   * `Language.Haskell.TH.FamFlavour`, which was deprecated in 2.11,
     has been removed.
diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal
index 7770a38..b0bc10e 100644
--- a/libraries/template-haskell/template-haskell.cabal
+++ b/libraries/template-haskell/template-haskell.cabal
@@ -1,5 +1,5 @@
 name:           template-haskell
-version:        2.13.0.0
+version:        2.14.0.0
 -- NOTE: Don't forget to update ./changelog.md
 license:        BSD3
 license-file:   LICENSE
diff --git a/testsuite/tests/th/TH_Roles2.stderr b/testsuite/tests/th/TH_Roles2.stderr
index b8e0d72..09b4bea 100644
--- a/testsuite/tests/th/TH_Roles2.stderr
+++ b/testsuite/tests/th/TH_Roles2.stderr
@@ -6,7 +6,7 @@ COERCION AXIOMS
 Dependent modules: []
 Dependent packages: [array-0.5.2.0, base-4.11.0.0, deepseq-1.4.3.0,
                      ghc-boot-th-8.3, ghc-prim-0.5.2.0, integer-gmp-1.0.1.0,
-                     pretty-1.1.3.5, template-haskell-2.13.0.0]
+                     pretty-1.1.3.5, template-haskell-2.14.0.0]
 
 ==================== Typechecker ====================
 TH_Roles2.$tcT



More information about the ghc-commits mailing list