th-orphans 0.13.4 → 0.13.5
raw patch · 3 files changed
+40/−23 lines, 3 files
Files
- CHANGELOG.md +3/−0
- src/Language/Haskell/TH/Instances.hs +12/−0
- th-orphans.cabal +25/−23
CHANGELOG.md view
@@ -1,3 +1,6 @@+### 0.13.5 [2018.01.18]+* Implement `qAddCorePlugin` for `Quasi` instances+ ### 0.13.4 [2017.07.26] * Implement `qAddForeignFile` for `Quasi` instances
src/Language/Haskell/TH/Instances.hs view
@@ -387,6 +387,9 @@ #if MIN_VERSION_template_haskell(2,12,0) qAddForeignFile a b = MTL.lift $ qAddForeignFile a b #endif+#if MIN_VERSION_template_haskell(2,13,0)+ qAddCorePlugin = MTL.lift . qAddCorePlugin+#endif instance (Quasi m, Monoid w) => Quasi (WriterT w m) where qNewName = MTL.lift . qNewName@@ -420,6 +423,9 @@ #if MIN_VERSION_template_haskell(2,12,0) qAddForeignFile a b = MTL.lift $ qAddForeignFile a b #endif+#if MIN_VERSION_template_haskell(2,13,0)+ qAddCorePlugin = MTL.lift . qAddCorePlugin+#endif instance Quasi m => Quasi (StateT s m) where qNewName = MTL.lift . qNewName@@ -453,6 +459,9 @@ #if MIN_VERSION_template_haskell(2,12,0) qAddForeignFile a b = MTL.lift $ qAddForeignFile a b #endif+#if MIN_VERSION_template_haskell(2,13,0)+ qAddCorePlugin = MTL.lift . qAddCorePlugin+#endif instance (Quasi m, Monoid w) => Quasi (RWST r w s m) where qNewName = MTL.lift . qNewName@@ -485,6 +494,9 @@ #endif #if MIN_VERSION_template_haskell(2,12,0) qAddForeignFile a b = MTL.lift $ qAddForeignFile a b+#endif+#if MIN_VERSION_template_haskell(2,13,0)+ qAddCorePlugin = MTL.lift . qAddCorePlugin #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.4+version: 0.13.5 cabal-version: >= 1.10 build-type: Simple license: BSD3@@ -17,7 +17,8 @@ , GHC == 7.8.4 , GHC == 7.10.3 , GHC == 8.0.2- , GHC == 8.2.1+ , GHC == 8.2.2+ , GHC == 8.4.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@@ -26,36 +27,37 @@ extra-source-files: CHANGELOG.md, README.md library- build-depends: base >= 4.3 && < 5,- template-haskell,- -- https://github.com/mboes/th-lift/issues/14- th-lift >= 0.7.1,- th-reify-many >= 0.1 && < 0.2,- th-lift-instances,- mtl+ build-depends: base >= 4.3 && < 5,+ template-haskell,+ -- https://github.com/mboes/th-lift/issues/14+ th-lift >= 0.7.1,+ th-reify-many >= 0.1 && < 0.2,+ th-lift-instances,+ mtl -- Use TH to derive Generics instances instead of DeriveGeneric, for < 7.10 if impl(ghc < 7.10)- build-depends: generic-deriving >= 1.9+ build-depends: generic-deriving >= 1.9 -- Prior to GHC 7.6, GHC generics lived in ghc-prim if impl(ghc >= 7.2) && impl(ghc < 7.6)- build-depends: ghc-prim+ build-depends: ghc-prim - hs-source-dirs: src- ghc-options: -Wall- exposed-modules: Language.Haskell.TH.Instances- default-language: Haskell2010+ hs-source-dirs: src+ ghc-options: -Wall+ exposed-modules: Language.Haskell.TH.Instances+ default-language: Haskell2010 test-suite test- type: exitcode-stdio-1.0- hs-source-dirs: test- main-is: Spec.hs- build-depends: base,- th-orphans,- hspec,- template-haskell- default-language: Haskell2010+ type: exitcode-stdio-1.0+ hs-source-dirs: test+ main-is: Spec.hs+ build-depends: base,+ th-orphans,+ hspec,+ template-haskell+ build-tool-depends: hspec-discover:hspec-discover+ default-language: Haskell2010 source-repository head type: git