th-orphans 0.13.3 → 0.13.4
raw patch · 3 files changed
+18/−2 lines, 3 filesdep ~template-haskell
Dependency ranges changed: template-haskell
Files
- CHANGELOG.md +3/−0
- src/Language/Haskell/TH/Instances.hs +12/−0
- th-orphans.cabal +3/−2
CHANGELOG.md view
@@ -1,2 +1,5 @@+### 0.13.4 [2017.07.26]+* Implement `qAddForeignFile` for `Quasi` instances+ ### 0.13.3 [2016.11.09] * Backport `Generic NameFlavour` instance
src/Language/Haskell/TH/Instances.hs view
@@ -384,6 +384,9 @@ #elif MIN_VERSION_template_haskell(2,5,0) qClassInstances a b = MTL.lift $ qClassInstances a b #endif+#if MIN_VERSION_template_haskell(2,12,0)+ qAddForeignFile a b = MTL.lift $ qAddForeignFile a b+#endif instance (Quasi m, Monoid w) => Quasi (WriterT w m) where qNewName = MTL.lift . qNewName@@ -414,6 +417,9 @@ #elif MIN_VERSION_template_haskell(2,5,0) qClassInstances a b = MTL.lift $ qClassInstances a b #endif+#if MIN_VERSION_template_haskell(2,12,0)+ qAddForeignFile a b = MTL.lift $ qAddForeignFile a b+#endif instance Quasi m => Quasi (StateT s m) where qNewName = MTL.lift . qNewName@@ -444,6 +450,9 @@ #elif MIN_VERSION_template_haskell(2,5,0) qClassInstances a b = MTL.lift $ qClassInstances a b #endif+#if MIN_VERSION_template_haskell(2,12,0)+ qAddForeignFile a b = MTL.lift $ qAddForeignFile a b+#endif instance (Quasi m, Monoid w) => Quasi (RWST r w s m) where qNewName = MTL.lift . qNewName@@ -473,6 +482,9 @@ # endif #elif MIN_VERSION_template_haskell(2,5,0) qClassInstances a b = MTL.lift $ qClassInstances a b+#endif+#if MIN_VERSION_template_haskell(2,12,0)+ qAddForeignFile a b = MTL.lift $ qAddForeignFile a b #endif #if MIN_VERSION_base(4,7,0) && defined(LANGUAGE_DeriveDataTypeable) && __GLASGOW_HASKELL__ < 710
th-orphans.cabal view
@@ -1,5 +1,5 @@ name: th-orphans-version: 0.13.3+version: 0.13.4 cabal-version: >= 1.10 build-type: Simple license: BSD3@@ -16,7 +16,8 @@ , GHC == 7.6.3 , GHC == 7.8.4 , GHC == 7.10.3- , GHC == 8.0.1+ , GHC == 8.0.2+ , GHC == 8.2.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