th-compat 0.1.4 → 0.1.5
raw patch · 3 files changed
+16/−8 lines, 3 filesdep ~base-compatdep ~template-haskell
Dependency ranges changed: base-compat, template-haskell
Files
- CHANGELOG.md +3/−0
- src/Language/Haskell/TH/Syntax/Compat.hs +3/−1
- th-compat.cabal +10/−7
CHANGELOG.md view
@@ -1,3 +1,6 @@+### 0.1.5 [2024.03.19]+* Support building with `template-haskell-2.22.*` (GHC 9.10).+ ### 0.1.4 [2022.07.23] * Backport the `getPackageRoot` and `makeRelativeToProject` functions introduced in `template-haskell-2.19.0.0` (GHC 9.4).
src/Language/Haskell/TH/Syntax/Compat.hs view
@@ -756,7 +756,9 @@ -- differ between @template-haskell@ versions as well. -- -- Levity-polymorphic since /template-haskell-2.16.0.0/.-# if MIN_VERSION_template_haskell(2,17,0)+# if MIN_VERSION_template_haskell(2,22,0)+type Splice = Code :: ((* -> *) -> forall r. TYPE r -> *)+# elif MIN_VERSION_template_haskell(2,17,0) type Splice = Code :: (forall r. (* -> *) -> TYPE r -> *) # elif MIN_VERSION_template_haskell(2,16,0) type Splice m (a :: TYPE r) = m (Syntax.TExp a)
th-compat.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: th-compat-version: 0.1.4+version: 0.1.5 synopsis: Backward- (and forward-)compatible Quote and Code types description: This package defines a "Language.Haskell.TH.Syntax.Compat" module, which backports the @Quote@ and @Code@ types to@@ -33,8 +33,11 @@ , GHC == 8.8.4 , GHC == 8.10.7 , GHC == 9.0.2- , GHC == 9.2.3- , GHC == 9.4.1+ , GHC == 9.2.8+ , GHC == 9.4.8+ , GHC == 9.6.4+ , GHC == 9.8.2+ , GHC == 9.10.1 extra-source-files: CHANGELOG.md, README.md source-repository head@@ -44,12 +47,12 @@ library exposed-modules: Language.Haskell.TH.Syntax.Compat build-depends: base >= 4.3 && < 5- , template-haskell >= 2.5 && < 2.20+ , template-haskell >= 2.5 && < 2.22 if !impl(ghc >= 8.0) build-depends: fail == 4.9.* , transformers >= 0.2 && < 0.7 if !impl(ghc >= 9.4)- build-depends: filepath >= 1.2.0.0 && < 1.5+ build-depends: filepath >= 1.2.0.0 && < 1.6 , directory >= 1.1.0.0 && < 1.4 hs-source-dirs: src default-language: Haskell2010@@ -63,10 +66,10 @@ other-modules: Language.Haskell.TH.Syntax.CompatSpec Types build-depends: base >= 4.3 && < 5- , base-compat >= 0.6 && < 0.13+ , base-compat >= 0.6 && < 0.14 , hspec >= 2 && < 3 , mtl >= 2.1 && < 2.4- , template-haskell >= 2.5 && < 2.20+ , template-haskell >= 2.5 && < 2.22 , th-compat build-tool-depends: hspec-discover:hspec-discover >= 2 hs-source-dirs: tests