Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
Setup.hs
package.yaml
stack.yaml

README.md

Learn You A Haskell Exercises

The exercises are in the src directory. Each file corresponds to a chapter of LYAH.

  • C2StartingOut.hs
  • C3TypesAndTypeclasses.hs
  • C4SyntaxInFunctions.hs
  • C5Recursion.hs

Running code

You can compile your code with stack build and/or once you have loaded ghci, you can load each module/file into the interpreter,

:l src/Filename.hs
-- Now you can run the functions in that module here

Tests

You can run the unit tests with stack test if you want to check your implementation. You can also look at the tests if the examples in the exercises are not clear.