Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Connection = Connection {}
- connect :: MonadIO m => ConnectionOpts -> m Connection
- disconnect :: MonadIO m => Connection -> m ()
- withChannel :: MonadBaseControl IO m => Connection -> (Channel -> m b) -> m b
Documentation
connect :: MonadIO m => ConnectionOpts -> m Connection Source #
Connect to the AMQP server.
conn <- connect (fromURI "amqp://guest:guest@localhost:5672")
disconnect :: MonadIO m => Connection -> m () Source #
withChannel :: MonadBaseControl IO m => Connection -> (Channel -> m b) -> m b Source #
Perform an action with a channel resource