Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Connection = Connection {}
- connect :: MonadIO m => ConnectionOpts -> m Connection
- disconnect :: MonadIO m => Connection -> m ()
- withChannel :: Connection -> (Channel -> IO b) -> IO 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 :: Connection -> (Channel -> IO b) -> IO b Source #
Perform an action with a channel resource