Here you can find Haskell code examples from RabbitMQ tutorials.
To run this code you need Network.AMQP.
Code examples are executed via runhaskell
:
runhaskell send.hs
runhaskell receive.hs
runhaskell newTask.hs hello world
runhaskell worker.hs
Tutorial three: Publish/Subscribe
runhaskell receiveLogs.hs
runhaskell emitLog.hs hello world
runhaskell receiveLogsDirect.hs info warn
runhaskell emitLogDirect.hs warn "a warning"
runhaskell receiveLogsTopic.hs info warn
runhaskell emitLogTopic.hs warn "a warning"
TBD
To learn more, see Network.AMQP.