snaplet-amqp: Snap framework snaplet for the AMQP library

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

`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

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.2.4, 0.1.2.5, 0.1.3.0, 0.1.3.1, 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.1.2, 1.1.0.0
Dependencies amqp (>=0.10 && <0.11), base (>=4.4 && <5), configurator (>=0.3 && <0.4), mtl (>=2 && <3), network (>=2.5 && <2.6), snap (>=0.13 && <0.14), transformers (>=0.4 && <0.5) [details]
Tested with ghc ==7.6.3
License BSD-3-Clause
Copyright (c) 2014 Parnell Springmeyer
Author Parnell Springmeyer
Maintainer parnell@digitalmentat.com
Category Web
Home page https://github.com/ixmatus/snaplet-amqp
Bug tracker https://github.com/ixmatus/snaplet-amqp/issues
Source repo head: git clone https://github.com/ixmatus/snaplet-amqp
Uploaded by ParnellSpringmeyer at 2014-09-17T03:51:19Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 8135 total (39 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]