Skip to content

dbalmain/xhaskell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

367 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xHaskell

Build Status

Exercism exercises in Haskell

Contributing Guide

Please see the contributing guide

Development Dependencies

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 vector

Exercises

Currently, we have two types of exercises in this track:

Stack projects

We are migrating all the exercises to this new format:

  • stack.yaml has just one line specifying the current Stack snapshot. We use the same resolver for all the exercises.
  • package.yaml is a file in the hpack format that has all dependencies and build instructions for an exercise.
  • src/Example.hs is a sample solution passing the tests.
  • src/ModuleName.hs is a stub solution.
  • test/Test.hs is the test suite.
Legacy exercises

Legacy exercises have two or three files and no directories:

  • exercise-name_test.hs is the tests suite.
  • example.hs is a sample solution passing the tests.
  • ModuleName.hs is an optional stub solution.

Running Tests

Exercises that are stack projects

Rename the file src/Example.hs to match the module name and run:

stack test --pedantic

If the stub solution is still in the /src folder, build will probably fail.

Legacy exercises

Rename the file example.hs to match the module name and run:

stack runghc exercise-name_test.hs

License

The MIT License (MIT)

Copyright (c) 2014 Katrina Owen, _@kytrinyx.com

About

Exercism Exercises in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 97.3%
  • Shell 2.7%