th-orphans 0.13.5 → 0.13.6
raw patch · 3 files changed
+116/−99 lines, 3 filesdep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: template-haskell
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- src/Language/Haskell/TH/Instances.hs +108/−96
- th-orphans.cabal +4/−3
CHANGELOG.md view
@@ -1,3 +1,7 @@+### 0.13.6 [2018.07.01]+* Allow building with `template-haskell-2.14`.+* Implement `qAddForeignFilePath` and `qAddTempFile` for `Quasi` instances+ ### 0.13.5 [2018.01.18] * Implement `qAddCorePlugin` for `Quasi` instances
src/Language/Haskell/TH/Instances.hs view
@@ -356,147 +356,159 @@ #endif instance Quasi m => Quasi (ReaderT r m) where- qNewName = MTL.lift . qNewName- qReport a b = MTL.lift $ qReport a b- qRecover m1 m2 = ReaderT $ \ r -> runReaderT m1 r `qRecover` runReaderT m2 r- qReify = MTL.lift . qReify- qLocation = MTL.lift qLocation- qRunIO = MTL.lift . qRunIO+ qNewName = MTL.lift . qNewName+ qReport a b = MTL.lift $ qReport a b+ qRecover m1 m2 = ReaderT $ \ r -> runReaderT m1 r `qRecover` runReaderT m2 r+ qReify = MTL.lift . qReify+ qLocation = MTL.lift qLocation+ qRunIO = MTL.lift . qRunIO #if MIN_VERSION_template_haskell(2,7,0)- qReifyInstances a b = MTL.lift $ qReifyInstances a b- qLookupName a b = MTL.lift $ qLookupName a b- qAddDependentFile = MTL.lift . qAddDependentFile+ qReifyInstances a b = MTL.lift $ qReifyInstances a b+ qLookupName a b = MTL.lift $ qLookupName a b+ qAddDependentFile = MTL.lift . qAddDependentFile # if MIN_VERSION_template_haskell(2,9,0)- qReifyRoles = MTL.lift . qReifyRoles- qReifyAnnotations = MTL.lift . qReifyAnnotations- qReifyModule = MTL.lift . qReifyModule- qAddTopDecls = MTL.lift . qAddTopDecls- qAddModFinalizer = MTL.lift . qAddModFinalizer- qGetQ = MTL.lift qGetQ- qPutQ = MTL.lift . qPutQ+ qReifyRoles = MTL.lift . qReifyRoles+ qReifyAnnotations = MTL.lift . qReifyAnnotations+ qReifyModule = MTL.lift . qReifyModule+ qAddTopDecls = MTL.lift . qAddTopDecls+ qAddModFinalizer = MTL.lift . qAddModFinalizer+ qGetQ = MTL.lift qGetQ+ qPutQ = MTL.lift . qPutQ # endif # if MIN_VERSION_template_haskell(2,11,0)- qReifyFixity = MTL.lift . qReifyFixity- qReifyConStrictness = MTL.lift . qReifyConStrictness- qIsExtEnabled = MTL.lift . qIsExtEnabled- qExtsEnabled = MTL.lift qExtsEnabled+ qReifyFixity = MTL.lift . qReifyFixity+ qReifyConStrictness = MTL.lift . qReifyConStrictness+ qIsExtEnabled = MTL.lift . qIsExtEnabled+ qExtsEnabled = MTL.lift qExtsEnabled # endif #elif MIN_VERSION_template_haskell(2,5,0)- qClassInstances a b = MTL.lift $ qClassInstances a b+ 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+#if MIN_VERSION_template_haskell(2,14,0)+ qAddForeignFilePath a b = MTL.lift $ qAddForeignFilePath a b+ qAddTempFile = MTL.lift . qAddTempFile+#elif 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+ qAddCorePlugin = MTL.lift . qAddCorePlugin #endif instance (Quasi m, Monoid w) => Quasi (WriterT w m) where- qNewName = MTL.lift . qNewName- qReport a b = MTL.lift $ qReport a b- qRecover m1 m2 = WriterT $ runWriterT m1 `qRecover` runWriterT m2- qReify = MTL.lift . qReify- qLocation = MTL.lift qLocation- qRunIO = MTL.lift . qRunIO+ qNewName = MTL.lift . qNewName+ qReport a b = MTL.lift $ qReport a b+ qRecover m1 m2 = WriterT $ runWriterT m1 `qRecover` runWriterT m2+ qReify = MTL.lift . qReify+ qLocation = MTL.lift qLocation+ qRunIO = MTL.lift . qRunIO #if MIN_VERSION_template_haskell(2,7,0)- qReifyInstances a b = MTL.lift $ qReifyInstances a b- qLookupName a b = MTL.lift $ qLookupName a b- qAddDependentFile = MTL.lift . qAddDependentFile+ qReifyInstances a b = MTL.lift $ qReifyInstances a b+ qLookupName a b = MTL.lift $ qLookupName a b+ qAddDependentFile = MTL.lift . qAddDependentFile # if MIN_VERSION_template_haskell(2,9,0)- qReifyRoles = MTL.lift . qReifyRoles- qReifyAnnotations = MTL.lift . qReifyAnnotations- qReifyModule = MTL.lift . qReifyModule- qAddTopDecls = MTL.lift . qAddTopDecls- qAddModFinalizer = MTL.lift . qAddModFinalizer- qGetQ = MTL.lift qGetQ- qPutQ = MTL.lift . qPutQ+ qReifyRoles = MTL.lift . qReifyRoles+ qReifyAnnotations = MTL.lift . qReifyAnnotations+ qReifyModule = MTL.lift . qReifyModule+ qAddTopDecls = MTL.lift . qAddTopDecls+ qAddModFinalizer = MTL.lift . qAddModFinalizer+ qGetQ = MTL.lift qGetQ+ qPutQ = MTL.lift . qPutQ # endif # if MIN_VERSION_template_haskell(2,11,0)- qReifyFixity = MTL.lift . qReifyFixity- qReifyConStrictness = MTL.lift . qReifyConStrictness- qIsExtEnabled = MTL.lift . qIsExtEnabled- qExtsEnabled = MTL.lift qExtsEnabled+ qReifyFixity = MTL.lift . qReifyFixity+ qReifyConStrictness = MTL.lift . qReifyConStrictness+ qIsExtEnabled = MTL.lift . qIsExtEnabled+ qExtsEnabled = MTL.lift qExtsEnabled # endif #elif MIN_VERSION_template_haskell(2,5,0)- qClassInstances a b = MTL.lift $ qClassInstances a b+ 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+#if MIN_VERSION_template_haskell(2,14,0)+ qAddForeignFilePath a b = MTL.lift $ qAddForeignFilePath a b+ qAddTempFile = MTL.lift . qAddTempFile+#elif 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+ qAddCorePlugin = MTL.lift . qAddCorePlugin #endif instance Quasi m => Quasi (StateT s m) where- qNewName = MTL.lift . qNewName- qReport a b = MTL.lift $ qReport a b- qRecover m1 m2 = StateT $ \ s -> runStateT m1 s `qRecover` runStateT m2 s- qReify = MTL.lift . qReify- qLocation = MTL.lift qLocation- qRunIO = MTL.lift . qRunIO+ qNewName = MTL.lift . qNewName+ qReport a b = MTL.lift $ qReport a b+ qRecover m1 m2 = StateT $ \ s -> runStateT m1 s `qRecover` runStateT m2 s+ qReify = MTL.lift . qReify+ qLocation = MTL.lift qLocation+ qRunIO = MTL.lift . qRunIO #if MIN_VERSION_template_haskell(2,7,0)- qReifyInstances a b = MTL.lift $ qReifyInstances a b- qLookupName a b = MTL.lift $ qLookupName a b- qAddDependentFile = MTL.lift . qAddDependentFile+ qReifyInstances a b = MTL.lift $ qReifyInstances a b+ qLookupName a b = MTL.lift $ qLookupName a b+ qAddDependentFile = MTL.lift . qAddDependentFile # if MIN_VERSION_template_haskell(2,9,0)- qReifyRoles = MTL.lift . qReifyRoles- qReifyAnnotations = MTL.lift . qReifyAnnotations- qReifyModule = MTL.lift . qReifyModule- qAddTopDecls = MTL.lift . qAddTopDecls- qAddModFinalizer = MTL.lift . qAddModFinalizer- qGetQ = MTL.lift qGetQ- qPutQ = MTL.lift . qPutQ+ qReifyRoles = MTL.lift . qReifyRoles+ qReifyAnnotations = MTL.lift . qReifyAnnotations+ qReifyModule = MTL.lift . qReifyModule+ qAddTopDecls = MTL.lift . qAddTopDecls+ qAddModFinalizer = MTL.lift . qAddModFinalizer+ qGetQ = MTL.lift qGetQ+ qPutQ = MTL.lift . qPutQ # endif # if MIN_VERSION_template_haskell(2,11,0)- qReifyFixity = MTL.lift . qReifyFixity- qReifyConStrictness = MTL.lift . qReifyConStrictness- qIsExtEnabled = MTL.lift . qIsExtEnabled- qExtsEnabled = MTL.lift qExtsEnabled+ qReifyFixity = MTL.lift . qReifyFixity+ qReifyConStrictness = MTL.lift . qReifyConStrictness+ qIsExtEnabled = MTL.lift . qIsExtEnabled+ qExtsEnabled = MTL.lift qExtsEnabled # endif #elif MIN_VERSION_template_haskell(2,5,0)- qClassInstances a b = MTL.lift $ qClassInstances a b+ 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+#if MIN_VERSION_template_haskell(2,14,0)+ qAddForeignFilePath a b = MTL.lift $ qAddForeignFilePath a b+ qAddTempFile = MTL.lift . qAddTempFile+#elif 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+ qAddCorePlugin = MTL.lift . qAddCorePlugin #endif instance (Quasi m, Monoid w) => Quasi (RWST r w s m) where- qNewName = MTL.lift . qNewName- qReport a b = MTL.lift $ qReport a b- qRecover m1 m2 = RWST $ \ r s -> runRWST m1 r s `qRecover` runRWST m2 r s- qReify = MTL.lift . qReify- qLocation = MTL.lift qLocation- qRunIO = MTL.lift . qRunIO+ qNewName = MTL.lift . qNewName+ qReport a b = MTL.lift $ qReport a b+ qRecover m1 m2 = RWST $ \ r s -> runRWST m1 r s `qRecover` runRWST m2 r s+ qReify = MTL.lift . qReify+ qLocation = MTL.lift qLocation+ qRunIO = MTL.lift . qRunIO #if MIN_VERSION_template_haskell(2,7,0)- qReifyInstances a b = MTL.lift $ qReifyInstances a b- qLookupName a b = MTL.lift $ qLookupName a b- qAddDependentFile = MTL.lift . qAddDependentFile+ qReifyInstances a b = MTL.lift $ qReifyInstances a b+ qLookupName a b = MTL.lift $ qLookupName a b+ qAddDependentFile = MTL.lift . qAddDependentFile # if MIN_VERSION_template_haskell(2,9,0)- qReifyRoles = MTL.lift . qReifyRoles- qReifyAnnotations = MTL.lift . qReifyAnnotations- qReifyModule = MTL.lift . qReifyModule- qAddTopDecls = MTL.lift . qAddTopDecls- qAddModFinalizer = MTL.lift . qAddModFinalizer- qGetQ = MTL.lift qGetQ- qPutQ = MTL.lift . qPutQ+ qReifyRoles = MTL.lift . qReifyRoles+ qReifyAnnotations = MTL.lift . qReifyAnnotations+ qReifyModule = MTL.lift . qReifyModule+ qAddTopDecls = MTL.lift . qAddTopDecls+ qAddModFinalizer = MTL.lift . qAddModFinalizer+ qGetQ = MTL.lift qGetQ+ qPutQ = MTL.lift . qPutQ # endif # if MIN_VERSION_template_haskell(2,11,0)- qReifyFixity = MTL.lift . qReifyFixity- qReifyConStrictness = MTL.lift . qReifyConStrictness- qIsExtEnabled = MTL.lift . qIsExtEnabled- qExtsEnabled = MTL.lift qExtsEnabled+ qReifyFixity = MTL.lift . qReifyFixity+ qReifyConStrictness = MTL.lift . qReifyConStrictness+ qIsExtEnabled = MTL.lift . qIsExtEnabled+ qExtsEnabled = MTL.lift qExtsEnabled # endif #elif MIN_VERSION_template_haskell(2,5,0)- qClassInstances a b = MTL.lift $ qClassInstances a b+ 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+#if MIN_VERSION_template_haskell(2,14,0)+ qAddForeignFilePath a b = MTL.lift $ qAddForeignFilePath a b+ qAddTempFile = MTL.lift . qAddTempFile+#elif 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+ 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.5+version: 0.13.6 cabal-version: >= 1.10 build-type: Simple license: BSD3@@ -18,7 +18,8 @@ , GHC == 7.10.3 , GHC == 8.0.2 , GHC == 8.2.2- , GHC == 8.4.1+ , GHC == 8.4.3+ , GHC == 8.6.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@@ -28,7 +29,7 @@ library build-depends: base >= 4.3 && < 5,- template-haskell,+ template-haskell < 2.15, -- https://github.com/mboes/th-lift/issues/14 th-lift >= 0.7.1, th-reify-many >= 0.1 && < 0.2,