Skip to content
Excercise for my Haskell Training
Haskell Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test
.gitignore
README.md
repl
run-tests.sh
trainwreck.cabal

README.md

Trainwreck

A starting point for an excercise for a Haskell Training held at Reaktor (reaktor.fi/en).

Please see Agile Finland for information on the actual training session.

The assignment

Create a train ticket reservation system that responds to simple JSON HTTP POST requests as below:

POST /ticket/ {amount : 2}

=> [{ "car" : 1, "seat" : 2},{ "car" : 1, "seat" : 4}] 

or in case not enough tickets available:

=> []
Something went wrong with that request. Please try again.