summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2016-03-08 12:42:32 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2016-03-08 12:42:32 +0100
commit1a9734a69260e69943c00755952edd7185dcc484 (patch)
tree43f002484a935a93445a1955a03a49f6ff6c2872 /libraries
parent90e1e160b783644c2d3cc0a05e3a804cea549cf9 (diff)
downloadhaskell-1a9734a69260e69943c00755952edd7185dcc484.tar.gz
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.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/template-haskell/Language/Haskell/TH/Syntax.hs5
-rw-r--r--libraries/template-haskell/template-haskell.cabal10
2 files changed, 8 insertions, 7 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index a3284c53eb..86242aa639 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 b96e122610..7241708473 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,7 +49,7 @@ Library
Language.Haskell.TH.Lib.Map
build-depends:
- base >= 4.6 && < 4.10,
+ base >= 4.8 && < 4.10,
ghc-boot == 8.1,
pretty == 1.1.*