Exercism exercises in Haskell
Please see the contributing guide
You should have Stack installed in your system to make contributing to this repository easier. Also, until we finish migration of all exercises to stack projects #185, you'll need some additional packages installed in your implicit global project:
stack setup
stack install attoparsec HUnit lens old-locale parallel QuickCheck random split stm text vectorCurrently, we have two types of exercises in this track:
We are migrating all the exercises to this new format:
stack.yamlhas just one line specifying the current Stack snapshot. We use the same resolver for all the exercises.package.yamlis a file in the hpack format that has all dependencies and build instructions for an exercise.src/Example.hsis a sample solution passing the tests.src/ModuleName.hsis a stub solution.test/Test.hsis the test suite.
Legacy exercises have two or three files and no directories:
exercise-name_test.hsis the tests suite.example.hsis a sample solution passing the tests.ModuleName.hsis an optional stub solution.
Rename the file src/Example.hs to match the module name and run:
stack test --pedanticIf the stub solution is still in the /src folder, build will probably fail.
Rename the file example.hs to match the module name and run:
stack runghc exercise-name_test.hsThe MIT License (MIT)
Copyright (c) 2014 Katrina Owen, _@kytrinyx.com
