This project provides a git support for 1HaskellADay's exercises (see @1HaskellADay and the hashtag #1HaskellADay)
- Find an exercise in the
exercises
folder (there is one in theExercise.hs
file of each "leaf/date folder"). For example, the first one is inHAD\Y2014\M02\D24\Exercise.hs
- Do it.
- At the root of the project, run
stack ghci
: E.g.,
[~/Sources/learning/haskell/3rd/1HaskellADay (feature/stack)]
$ stack ghci
- check your answer with
check
. E.g.,
λ> check =<< date 2017 2 6
Examples: 3 Tried: 3 Errors: 0 Failures: 0
- compare your answer with the proposed one in the respective
Solution.hs
file; in order to check the solution, run
λ> doctest ["-iexercises/HAD", "exercises/HAD/Y2017/M02/D06/Solution.hs"]
Examples: 3 Tried: 3 Errors: 0 Failures: 0
If you install 1HaskellADay, you can use the 1had
executable for an easier access
to the tests and exercices.
[~/Sources/learning/haskell/3rd/1HaskellADay (feature/stack)]
$ stack install
[~/Sources/learning/haskell/3rd/1HaskellADay (feature/stack)]
$ 1had check 2017 2 6
Examples: 3 Tried: 3 Errors: 0 Failures: 0