GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rabbitmq-tutorials/haskell at master · rohochan/rabbitmq-tutorials

Expand file tree

/

haskell

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

haskell

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
emitLog.hs
emitLog.hs
 
 
emitLogDirect.hs
emitLogDirect.hs
 
 
emitLogTopic.hs
emitLogTopic.hs
 
 
newTask.hs
newTask.hs
 
 
receive.hs
receive.hs
 
 
receiveLogs.hs
receiveLogs.hs
 
 
receiveLogsDirect.hs
receiveLogsDirect.hs
 
 
receiveLogsTopic.hs
receiveLogsTopic.hs
 
 
send.hs
send.hs
 
 
worker.hs
worker.hs
 
 

README.md

Outline

Haskell code for RabbitMQ tutorials

Here you can find Haskell code examples from RabbitMQ tutorials.

Requirements

To run this code you need Network.AMQP.

Running the examples with stack

  1. Install stack.
  2. Run the scripts via stack FILE ARGS instead of runhaskell FILE ARGS. (This installs ghc, plus amqp and other required packages for you.)

Code

Code examples are executed via runhaskell:

Tutorial one: "Hello World!":

runhaskell send.hs
runhaskell receive.hs

Tutorial two: Work Queues:

runhaskell newTask.hs hello world
runhaskell worker.hs

Tutorial three: Publish/Subscribe

runhaskell receiveLogs.hs
runhaskell emitLog.hs hello world

Tutorial four: Routing

runhaskell receiveLogsDirect.hs info warn
runhaskell emitLogDirect.hs warn "a warning"

Tutorial five: Topics

runhaskell receiveLogsTopic.hs info warn
runhaskell emitLogTopic.hs warn "a warning"

Tutorial six: RPC

TBD

To learn more, see Network.AMQP.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.