This is the source code for a tutorial I wrote on my blog (in PT-BR).
Make sure you have Stack installed and run:
$ git clone https://github.com/alexandrelucchesi/haskell-scotty-tutorial.git
$ cd haskell-scotty-tutorial
$ stack build
$ stack exec -- mavins-lee
Optionally, instead of running build
and exec
, you can load the application
into GHCi with stack ghci
and call main
from there. This is particurlaly
useful during development.