snaplet-mandrill-0.1.0.3: Snap framework snaplet for the Mandrill API library.

Safe HaskellNone

Snap.Snaplet.Mandrill

Synopsis

Documentation

initMandrill :: SnapletInit b MandrillStateSource

Initialize the Mandrill Snaplet.

runMandrill :: HasMandrill m => MandrillT m a -> m aSource

Runs an Mandrill action in any monad with a HasAmqpConn instance.

newtype MandrillState Source

Constructors

MandrillState 

Fields

token :: MandrillKey
 

Instances

class MonadIO m => HasMandrill m whereSource

Methods

getMandrill :: m MandrillKeySource

Instances

MonadIO m => HasMandrill (ReaderT MandrillKey m) 
HasMandrill (Handler b MandrillState)