Note: This is the last checkpoint. If you want to complete this tutorial, please check "How to follow this tutorial" below.
Welcome! This is the repo of the tutorial that was presented on the 4th São Paulo Haskellers Meeting by Felipe Lessa (@meteficha).
To prepare your environment, you'll need to:
-
Install the Haskell Platform.
-
Update your Cabal database by running
cabal update
. -
Install the Yesod Platform version 1.2 by running
cabal install yesod-platform-1.2.0.1 yesod-bin persistent-sqlite esqueleto
. Note that by the time you follow these instructions there may be a more recent version of the Yesod Platform, but this tutorial has been written with this one mind. -
Clone this repo to your machine.
-
Finally, checkout the first checkpoint by using
git checkout -f checkpoint-00
.
This tutorial has the concept of checkpoints. Each checkpoint
is a git branch. You'll use the checkpoints in order to advance
through the tutorial. At all times, just check the file
TODO.md
in order to see what is your current task.
To go to the first checkpoint, just run git checkout -f checkpoint-00
. Now open TODO.md
and continue from there =).
After completing a checkpoint's task, you may want to compare
your code with the solution in the repo. For example, if you are
on checkpoint-07
, you should run git diff checkpoint-08
in
order to see how your solution differs from the repo's one.
If you're satisfied with your solution and want to follow to the
next checkpoint, then commit your progress for future reference
using git commit -a -m 'My progress'
and checkout the next
checkpoint using git checkout -f checkpoint-XX
, where XX
is
the number of the next checkpoint. (Use git branch
to see your
current checkpoint.) Your modifications will be thrown away and
you'll go on with the tutorial's code.