template-haskell-compat-v0208 0.1.5 → 0.1.6
raw patch · 2 files changed
+15/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ TemplateHaskell.Compat.V0208: tyVarBndrKind :: TyVarBndr -> Maybe Kind
Files
library/TemplateHaskell/Compat/V0208.hs view
@@ -36,7 +36,7 @@ notStrict :: Strict notStrict = #if MIN_VERSION_template_haskell(2,11,0)- unsafePerformIO (runQ (bang noSourceUnpackedness noSourceStrictness))+ Bang NoSourceUnpackedness NoSourceStrictness #else NotStrict #endif@@ -75,3 +75,16 @@ #else doE = DoE #endif++#if MIN_VERSION_template_haskell(2,17,0)+tyVarBndrKind :: TyVarBndr flag -> Maybe Kind+tyVarBndrKind = \ case+ KindedTV _ _ a -> Just a+ _ -> Nothing+#else+tyVarBndrKind :: TyVarBndr -> Maybe Kind+tyVarBndrKind = \ case+ KindedTV _ a -> Just a+ _ -> Nothing+#endif+
template-haskell-compat-v0208.cabal view
@@ -1,5 +1,5 @@ name: template-haskell-compat-v0208-version: 0.1.5+version: 0.1.6 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