diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-05-16 15:21:34 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-05-16 16:22:05 +0200 |
commit | eed820b672e6c3d23106cd151b1e31ce29326e32 (patch) | |
tree | 48fd270edef8f7a50ef28f876b0d5e6a47e6313c /libraries/template-haskell | |
parent | d78faa135921dfe7a6b92f908171af1a2cdce512 (diff) | |
download | haskell-eed820b672e6c3d23106cd151b1e31ce29326e32.tar.gz |
Move Extension type to ghc-boot-th
This creates a new package, `ghc-boot-th`, to contain the `Extension`
type, which now lives in `GHC.LanguageExtension.Type`. This ensures that
the transitive dependency set of the `template-haskell` package remains
minimal.
The `GHC.LanguageExtensions.Type` module is also re-exported by
`ghc-boot`, which provides an orphan `binary` instance as well.
Test Plan: Validate
Reviewers: goldfire, thomie, hvr, austin
Reviewed By: thomie
Subscribers: RyanGlScott, thomie, erikd, ezyang
Differential Revision: https://phabricator.haskell.org/D2224
Diffstat (limited to 'libraries/template-haskell')
-rw-r--r-- | libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs | 2 | ||||
-rw-r--r-- | libraries/template-haskell/template-haskell.cabal | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs b/libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs index 8a64490676..2043e89f6a 100644 --- a/libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs +++ b/libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs @@ -19,4 +19,4 @@ module Language.Haskell.TH.LanguageExtensions -- This module exists primarily to avoid inserting a massive list of language -- extensions into the already quite large Haddocks for Language.Haskell.TH -import GHC.LanguageExtensions (Extension(..)) +import GHC.LanguageExtensions.Type (Extension(..)) diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal index 7241708473..0d9f468327 100644 --- a/libraries/template-haskell/template-haskell.cabal +++ b/libraries/template-haskell/template-haskell.cabal @@ -49,9 +49,9 @@ Library Language.Haskell.TH.Lib.Map build-depends: - base >= 4.8 && < 4.10, - ghc-boot == 8.1, - pretty == 1.1.* + base >= 4.8 && < 4.10, + ghc-boot-th == 8.1, + pretty == 1.1.* -- We need to set the unit ID to template-haskell (without a -- version number) as it's magic. |