th-orphans 0.13.7 → 0.13.8
raw patch · 3 files changed
+17/−3 lines, 3 files
Files
- CHANGELOG.md +5/−0
- src/Language/Haskell/TH/Instances.hs +8/−0
- th-orphans.cabal +4/−3
CHANGELOG.md view
@@ -1,3 +1,8 @@+### 0.13.8 [2019.09.04]+* Backport the `Bounded` instance for `Extension`+ (from `Language.Haskell.TH.LanguageExtensions`), which was introduced in+ `template-haskell-2.15.0.0`.+ ### 0.13.7 [2019.03.24] * Backport the `MonadFail Q` instance. * Allow building with `template-haskell-2.16` by manually implementing
src/Language/Haskell/TH/Instances.hs view
@@ -74,6 +74,10 @@ import Unsafe.Coerce (unsafeCoerce) #endif +#if MIN_VERSION_template_haskell(2,11,0) && !(MIN_VERSION_template_haskell(2,15,0))+import Language.Haskell.TH.LanguageExtensions (Extension(..))+#endif+ -- Thanks to Richard Eisenberg, GHC 7.10 adds many of the instances -- from this module. #if !MIN_VERSION_template_haskell(2,10,0)@@ -385,6 +389,10 @@ pure = return (<*>) = ap # endif+#endif++#if MIN_VERSION_template_haskell(2,11,0) && !(MIN_VERSION_template_haskell(2,15,0))+deriving instance Bounded Extension #endif instance Quasi m => Quasi (ReaderT r m) where
th-orphans.cabal view
@@ -1,5 +1,5 @@ name: th-orphans-version: 0.13.7+version: 0.13.8 cabal-version: >= 1.10 build-type: Simple license: BSD3@@ -19,7 +19,8 @@ , GHC == 8.0.2 , GHC == 8.2.2 , GHC == 8.4.4- , GHC == 8.6.4+ , GHC == 8.6.5+ , GHC == 8.8.1 synopsis: Orphan instances for TH datatypes description: Orphan instances for TH datatypes. In particular, instances for Ord and Lift, as well as a few missing Show / Eq. These@@ -29,7 +30,7 @@ library build-depends: base >= 4.3 && < 5,- template-haskell < 2.15,+ template-haskell < 2.16, -- https://github.com/mboes/th-lift/issues/14 th-lift >= 0.7.1, th-reify-many >= 0.1 && < 0.2,