packages feed

consumers 2.1.1.0 → 2.1.2.0

raw patch · 3 files changed

+14/−6 lines, 3 filesdep ~basedep ~hpqtypesPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, hpqtypes

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+# consumers-2.1.2.0 (2018-07-11)++* Support hpqtypes-1.6.0.0.+* Drop support for GHC < 8.+ # consumers-2.1.1.0 (2018-03-18)  * GHC 8.4.1 support.
consumers.cabal view
@@ -1,5 +1,5 @@ name:               consumers-version:            2.1.1.0+version:            2.1.2.0 synopsis:           Concurrent PostgreSQL data consumers  description:        Library for setting up concurrent consumers of data@@ -18,8 +18,7 @@ category:           Concurrency, Database build-type:         Simple cabal-version:      >=1.10-tested-with:        GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2,-                    GHC == 8.4.1+tested-with:        GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.3  Source-repository head   Type:             git@@ -32,11 +31,11 @@                     Database.PostgreSQL.Consumers.Components,                     Database.PostgreSQL.Consumers.Utils -  build-depends:    base <5,+  build-depends:    base >4 && <5,                     containers,                     exceptions,                     extra,-                    hpqtypes >= 1.5,+                    hpqtypes >= 1.6 && < 1.7,                     lifted-base,                     lifted-threads,                     log-base >= 0.7,
src/Database/PostgreSQL/Consumers/Consumer.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE TypeApplications #-} module Database.PostgreSQL.Consumers.Consumer (     ConsumerID   , registerConsumer@@ -18,7 +19,10 @@  -- | ID of a consumer. newtype ConsumerID = ConsumerID Int64-  deriving (Eq, Ord, PQFormat)+  deriving (Eq, Ord)++instance PQFormat ConsumerID where+  pqFormat = pqFormat @Int64 instance FromSQL ConsumerID where   type PQBase ConsumerID = PQBase Int64   fromSQL mbase = ConsumerID <$> fromSQL mbase