Name: snaplet-amqp Version: 0.1.2.0 Synopsis: Snap framework snaplet for the AMQP library Homepage: https://github.com/ixmatus/snaplet-amqp License: BSD3 License-file: LICENSE Author: Parnell Springmeyer Maintainer: parnell@digitalmentat.com Copyright: (c) 2014 Parnell Springmeyer Category: Web Build-type: Simple Stability: alpha Bug-reports: https://github.com/ixmatus/snaplet-amqp/issues Package-url: http://hackage.haskell.org/package/snaplet-amqp Tested-with: GHC == 7.6.3 Cabal-version: >=1.14.0 description: `snaplet-amqp` is a snaplet for the Snap web framework providing convenience functions and state management for the Haskell AMQP package. . Below is an incomplete example. . @ import Control.Lens import Snap import Snap.Snaplet import Snap.Snaplet.AMQP data App = App { _amqp :: Snaplet AmqpState } makeLenses ''App instance HasAmqpConn (Handler b App) where getAmqpConn = with amqp getAmqpConn app :: SnapletInit App App app = makeSnaplet "app" "An snaplet example application." Nothing $ do a <- nestSnaplet "amqp" amqp initAMQP addRoutes appRoutes -- Your routes, I haven't defined any here return $ App a Extra-source-files: LICENSE README.org Library Default-Language: Haskell2010 HS-Source-Dirs: src GHC-Options: -Wall Exposed-Modules: Snap.Snaplet.AMQP Other-Modules: Paths_snaplet_amqp Build-Depends: base >= 4.4 && < 5, snap >= 0.13 && < 0.14, amqp >= 0.10 && < 0.11, transformers >= 0.4 && < 0.5, configurator >= 0.3 && < 0.4, network >= 2.5 && < 2.6, mtl >= 2 && < 3 Source-Repository head Type: git Location: https://github.com/ixmatus/snaplet-amqp