[commit: ghc] ghc-8.0: template-haskell: Drop use of Rank2Types/PolymorphicComponents (125f68a)

git at git.haskell.org git at git.haskell.org
Tue Mar 8 12:25:26 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/125f68a9093f82abb4ab085747d4271bcd95076c/ghc

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

commit 125f68a9093f82abb4ab085747d4271bcd95076c
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Mar 8 12:42:32 2016 +0100

    template-haskell: Drop use of Rank2Types/PolymorphicComponents
    
    As per #6032, `Rank2Types` and `PolymorphicComponents` have been
    deprecated in favour of `RankNTypes`.
    
    also update `other-extensions` in template-haskell.cabal flag to
    reflect reality.
    
    (cherry picked from commit 1a9734a69260e69943c00755952edd7185dcc484)


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

125f68a9093f82abb4ab085747d4271bcd95076c
 libraries/template-haskell/Language/Haskell/TH/Syntax.hs |  5 ++---
 libraries/template-haskell/template-haskell.cabal        | 12 +++++++-----
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index d2c3649..d2ed425 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -1,8 +1,7 @@
-{-# LANGUAGE CPP, DeriveDataTypeable, PolymorphicComponents,
+{-# LANGUAGE CPP, DeriveDataTypeable,
              DeriveGeneric, FlexibleInstances, DefaultSignatures,
-             ScopedTypeVariables, Rank2Types #-}
+             RankNTypes, RoleAnnotations, ScopedTypeVariables #-}
 
-{-# LANGUAGE RoleAnnotations #-}
 {-# OPTIONS_GHC -fno-warn-inline-rule-shadowing #-}
 
 #if MIN_VERSION_base(4,8,0)
diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal
index cbdf5f2..efd5e66 100644
--- a/libraries/template-haskell/template-haskell.cabal
+++ b/libraries/template-haskell/template-haskell.cabal
@@ -26,13 +26,15 @@ source-repository head
 Library
     default-language: Haskell2010
     other-extensions:
+        BangPatterns
+        CPP
+        DefaultSignatures
         DeriveDataTypeable
+        DeriveGeneric
         FlexibleInstances
-        MagicHash
-        PolymorphicComponents
         RankNTypes
+        RoleAnnotations
         ScopedTypeVariables
-        UnboxedTuples
 
     exposed-modules:
         Language.Haskell.TH
@@ -47,8 +49,8 @@ Library
         Language.Haskell.TH.Lib.Map
 
     build-depends:
-        base       >= 4.6 && < 4.10,
-        ghc-boot   >= 7.11 && < 8.1,
+        base       >= 4.7 && < 4.10,
+        ghc-boot   == 8.0.*,
         pretty     == 1.1.*
 
     -- We need to set the unit ID to template-haskell (without a



More information about the ghc-commits mailing list