Simple trivia server in Haskell
###Setup
- install Haskell:
$ brew install ghc cabal-install
- clone the repo
$ git clone git@github.com:mLuby/triviaskell.git && cd triviaskell
- use cabal to install dependencies
$ cabal update && cabal install
- compile and run the server
$ ghc -o server.executable server.hs && ./server.executable
or all at once:
brew install ghc cabal-install
git clone git@github.com:mLuby/triviaskell.git && cd triviaskell
cabal update && cabal install
ghc -o server.executable server.hs && ./server.executable
#Newer instructions:
- install stack.
- in repo, run
$ stack build && stack exec trivia
. $ curl localhost:3000/questions/1
$ curl localhost:3000/questions/