groundhog-th 0.8 → 0.8.0.1
raw patch · 3 files changed
+10/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Database/Groundhog/TH/CodeGen.hs +6/−2
- changelog +3/−0
- groundhog-th.cabal +1/−1
Database/Groundhog/TH/CodeGen.hs view
@@ -822,7 +822,9 @@ dataInstD' :: Cxt -> Name -> [Type] -> [Con] -> [Name] -> InstanceDec dataInstD' cxt name types constrs derives = -#if MIN_VERSION_template_haskell(2, 11, 0) +#if MIN_VERSION_template_haskell(2, 12, 0) + DataInstD cxt name types Nothing constrs [DerivClause Nothing (map ConT derives)] +#elif MIN_VERSION_template_haskell(2, 11, 0) DataInstD cxt name types Nothing constrs (map ConT derives) #else DataInstD cxt name types constrs derives @@ -830,7 +832,9 @@ dataD' :: Cxt -> Name -> [TyVarBndr] -> [Con] -> [Name] -> InstanceDec dataD' cxt name types constrs derives = -#if MIN_VERSION_template_haskell(2, 11, 0) +#if MIN_VERSION_template_haskell(2, 12, 0) + DataD cxt name types Nothing constrs [DerivClause Nothing (map ConT derives)] +#elif MIN_VERSION_template_haskell(2, 11, 0) DataD cxt name types Nothing constrs (map ConT derives) #else DataD cxt name types constrs derives
changelog view
@@ -1,3 +1,6 @@+0.8.0.1+* Compatibility with template-haskell-2.12+ 0.8 * Support for GHC 8 * Generation of instances for newtype
groundhog-th.cabal view
@@ -1,5 +1,5 @@ name: groundhog-th-version: 0.8+version: 0.8.0.1 license: BSD3 license-file: LICENSE author: Boris Lykah <lykahb@gmail.com>