amqp-conduit 0.2.0.0 → 0.3.0.0
raw patch · 2 files changed
+48/−63 lines, 2 filesdep ~HUnitdep ~amqpdep ~amqp-conduitPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: HUnit, amqp, amqp-conduit, base, bytestring, conduit, exceptions, hspec, lifted-base, monad-control, mtl, resourcet, text, transformers, transformers-base
API changes (from Hackage documentation)
- Network.AMQP.Conduit: amqpChan :: AmqpConn -> (Channel, Maybe ConsumerTag)
- Network.AMQP.Conduit: amqpConn :: AmqpConn -> Connection
- Network.AMQP.Conduit: amqpExchanKey :: AmqpConf -> ExchangeKey
- Network.AMQP.Conduit: amqpExchange :: AmqpConf -> ExchangeOpts
- Network.AMQP.Conduit: amqpQueue :: AmqpConf -> QueueOpts
- Network.AMQP.Conduit: amqpUri :: AmqpConf -> AmqpURI
+ Network.AMQP.Conduit: [amqpChan] :: AmqpConn -> (Channel, Maybe ConsumerTag)
+ Network.AMQP.Conduit: [amqpConn] :: AmqpConn -> Connection
+ Network.AMQP.Conduit: [amqpExchanKey] :: AmqpConf -> ExchangeKey
+ Network.AMQP.Conduit: [amqpExchange] :: AmqpConf -> ExchangeOpts
+ Network.AMQP.Conduit: [amqpQueue] :: AmqpConf -> QueueOpts
+ Network.AMQP.Conduit: [amqpUri] :: AmqpConf -> AmqpURI
Files
- amqp-conduit.cabal +46/−60
- src/Network/AMQP/Conduit.hs +2/−3
amqp-conduit.cabal view
@@ -1,67 +1,53 @@-name: amqp-conduit-version: 0.2.0.0-synopsis: Conduit bindings for AMQP (see amqp package)-description: Conduit bindings for AMQP (see amqp package)-Stability: alpha-license: MIT-license-file: LICENSE-author: Toru Tomita-copyright: Copyright (c) 2015, Toru Tomita--- patches.-maintainer: toru.tomita@gmail.com-category: Network-build-type: Simple-Homepage: http://github.com/tatac1/amqp-conduit/--- Extra files to be distributed with the package, such as examples or a --- README.--- extra-source-files: --cabal-version: >=1.8+name: amqp-conduit+version: 0.3.0.0+cabal-version: >=1.8+build-type: Simple+license: MIT+license-file: LICENSE+copyright: Copyright (c) 2015, Toru Tomita+maintainer: toru.tomita@gmail.com+stability: alpha+homepage: http://github.com/tatac1/amqp-conduit/+synopsis: Conduit bindings for AMQP (see amqp package)+description:+ Conduit bindings for AMQP (see amqp package)+category: Network+author: Toru Tomita source-repository head- type: git+ type: git location: https://github.com/tatac1/amqp-conduit library- -- Modules exported by the library.- exposed-modules: Network.AMQP.Conduit- - -- Modules included in this library but not exported.- -- other-modules: - - -- LANGUAGE extensions used by modules in this package.- -- other-extensions: - - -- Other library packages from which modules are imported.- build-depends: base >=4.7 && <4.9- , conduit >= 1.2- , amqp >= 0.10- , resourcet- , transformers- , lifted-base- , exceptions- , transformers-base- , mtl >= 2.1- , monad-control- , text- - -- Directories containing source files.- hs-source-dirs: src - ghc-options: -Wall -fwarn-incomplete-patterns-+ exposed-modules:+ Network.AMQP.Conduit+ build-depends:+ base >=4.7 && <5,+ conduit ==1.2.*,+ amqp ==0.14.*,+ resourcet >=1.1.9 && <1.2,+ transformers >=0.5.2.0 && <0.6,+ lifted-base >=0.2.3.11 && <0.3,+ exceptions >=0.8.3 && <0.9,+ transformers-base >=0.4.4 && <0.5,+ mtl >=2.1 && <2.3,+ monad-control >=1.0.2.0 && <1.1,+ text >=1.2.2.1 && <1.3+ hs-source-dirs: src+ ghc-options: -Wall -fwarn-incomplete-patterns test-suite test-amqp-conduit- build-depends: amqp-conduit- , base >=4.7 && <4.8- , resourcet- , conduit- , bytestring- , amqp- , transformers- , hspec >=2.0 && <2.1- , HUnit == 1.2.5.*- type: exitcode-stdio-1.0- main-is: test.hs- hs-source-dirs: test- ghc-options: -Wall -fwarn-incomplete-patterns-+ type: exitcode-stdio-1.0+ main-is: test.hs+ build-depends:+ amqp-conduit >=0.3.0.0 && <0.4,+ base >=4.9.1.0 && <4.10,+ resourcet >=1.1.9 && <1.2,+ conduit >=1.2.11 && <1.3,+ bytestring >=0.10.8.1 && <0.11,+ amqp >=0.14.1 && <0.15,+ transformers >=0.5.2.0 && <0.6,+ hspec >=2.4.3 && <2.5,+ HUnit >=1.5.0.0 && <1.6+ hs-source-dirs: test+ ghc-options: -Wall -fwarn-incomplete-patterns
src/Network/AMQP/Conduit.hs view
@@ -1,6 +1,5 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} -- | -- Conduit bindings for AMQP (see amqp package) https://hackage.haskell.org/package/amqp@@ -10,7 +9,7 @@ -- -- /Example/: ----- Connect to a server, declare a queue and an exchange and setup a callback for messages coming in on the queue. Then publish a single message to our new exchange+-- Connect to a server, declare a queue and an exchange and setup a callback for messages coming in the queue, then publish a message to our new exchange -- -- >{-# LANGUAGE OverloadedStrings #-} -- >@@ -243,7 +242,7 @@ -> Exchange -> ExchangeKey -> Message- -> IO ()+ -> IO (Maybe Int) sendMsg conn exchange key msg = do publishMsg chan exchange key msg where