th-abstraction 0.4.1.0 → 0.4.2.0
raw patch · 6 files changed
+28/−2 lines, 6 filesdep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: template-haskell
API changes (from Hackage documentation)
Files
- ChangeLog.md +3/−0
- README.md +1/−1
- src/Language/Haskell/TH/Datatype.hs +6/−0
- src/Language/Haskell/TH/Datatype/Internal.hs +6/−0
- src/Language/Haskell/TH/Datatype/TyVarBndr.hs +6/−0
- th-abstraction.cabal +6/−1
ChangeLog.md view
@@ -1,5 +1,8 @@ # Revision history for th-abstraction +## 0.4.2.0 -- 2020-12-30+* Explicitly mark modules as Safe (or Trustworthy for GHC versions prior to 8.4).+ ## 0.4.1.0 -- 2020-12-09 * Fix a bug in which `normalizeDec` would give incorrect kind annotations to type variables in quoted `Dec`s. `normalizeDec` now leaves the kinds of
README.md view
@@ -1,7 +1,7 @@ th-abstraction ============== -[](https://hackage.haskell.org/package/th-abstraction) [](http://travis-ci.org/glguy/th-abstraction)+[](https://hackage.haskell.org/package/th-abstraction) [](https://github.com/glguy/th-abstraction/actions?query=workflow%3AHaskell-CI) This package provides a consistent interface to a subset of Template Haskell.
src/Language/Haskell/TH/Datatype.hs view
@@ -5,6 +5,12 @@ {-# Language DeriveGeneric #-} #endif +#if MIN_VERSION_template_haskell(2,12,0)+{-# Language Safe #-}+#elif __GLASGOW_HASKELL__ >= 702+{-# Language Trustworthy #-}+#endif+ {-| Module : Language.Haskell.TH.Datatype Description : Backwards-compatible interface to reified information about datatypes.
src/Language/Haskell/TH/Datatype/Internal.hs view
@@ -1,5 +1,11 @@ {-# LANGUAGE CPP #-} +#if MIN_VERSION_template_haskell(2,12,0)+{-# Language Safe #-}+#elif __GLASGOW_HASKELL__ >= 702+{-# Language Trustworthy #-}+#endif+ {-| Module : Language.Haskell.TH.Datatype.Internal Description : Backwards-compatible interface to reified information about datatypes.
src/Language/Haskell/TH/Datatype/TyVarBndr.hs view
@@ -5,6 +5,12 @@ {-# Language DeriveGeneric #-} #endif +#if MIN_VERSION_template_haskell(2,12,0)+{-# Language Safe #-}+#elif __GLASGOW_HASKELL__ >= 702+{-# Language Trustworthy #-}+#endif+ {-| Module : Language.Haskell.TH.Datatype.TyVarBndr Description : Backwards-compatible type variable binders
th-abstraction.cabal view
@@ -1,5 +1,5 @@ name: th-abstraction-version: 0.4.1.0+version: 0.4.2.0 synopsis: Nicer interface for reified information about data types description: This package normalizes variations in the interface for inspecting datatype information via Template Haskell@@ -33,6 +33,11 @@ containers >=0.4 && <0.7 hs-source-dirs: src default-language: Haskell2010++ if impl(ghc >= 9.0)+ -- these flags may abort compilation with GHC-8.10+ -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295+ ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode test-suite unit-tests other-modules: Harness