packages feed

template-haskell-compat-v0208 0.1.7 → 0.1.9

raw patch · 3 files changed

+20/−9 lines, 3 filesdep ~template-haskellsetup-changedPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: template-haskell

API changes (from Hackage documentation)

+ TemplateHaskell.Compat.V0208: conP :: Name -> [Pat] -> Pat
+ TemplateHaskell.Compat.V0208: flaglessPlainTV :: Name -> UnitTyVarBndr

Files

− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
library/TemplateHaskell/Compat/V0208.hs view
@@ -2,7 +2,7 @@ module TemplateHaskell.Compat.V0208 where  import TemplateHaskell.Compat.V0208.Prelude-import Language.Haskell.TH+import Language.Haskell.TH hiding (conP)   classP :: Name -> [Type] -> Pred@@ -50,6 +50,13 @@ tupE = TupE #endif +flaglessPlainTV :: Name -> UnitTyVarBndr+#if MIN_VERSION_template_haskell(2,17,0)+flaglessPlainTV name = PlainTV name ()+#else+flaglessPlainTV = PlainTV+#endif+ specifiedPlainTV :: Name -> SpecificityTyVarBndr #if MIN_VERSION_template_haskell(2,17,0) specifiedPlainTV = flip PlainTV SpecifiedSpec@@ -89,8 +96,13 @@ #endif  #if MIN_VERSION_template_haskell(2,18,0)-conp :: Name -> [Pat] -> Pat-conp name pats = ConP name [] pats+conP :: Name -> [Pat] -> Pat+conP name pats = ConP name [] pats #else-conp = ConP+conP :: Name -> [Pat] -> Pat+conP = ConP #endif++{-# deprecated conp "Use 'conP'" #-}+conp :: Name -> [Pat] -> Pat+conp = conP
template-haskell-compat-v0208.cabal view
@@ -1,5 +1,7 @@+cabal-version: 3.0+ name: template-haskell-compat-v0208-version: 0.1.7+version: 0.1.9 category: TemplateHaskell, Compatibility synopsis: A backwards compatibility layer for Template Haskell newer than 2.8 homepage: https://github.com/nikita-volkov/template-haskell-compat-v0208@@ -10,7 +12,6 @@ license: MIT license-file: LICENSE build-type: Simple-cabal-version: >=1.10  source-repository head   type: git@@ -26,4 +27,4 @@     TemplateHaskell.Compat.V0208.Prelude   build-depends:     base >=4.6 && <5,-    template-haskell >=2.8 && <3+    template-haskell >=2.8 && <2.19