Skip to content

teuffy/xhaskell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Exercises

All exercises have the following structure:

  • 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/ModuleName.hs is a stub solution.
  • src/examples/success-foo/package.yaml has dependencies for the example solution named foo.
  • src/examples/success-foo/src/ModuleName.hs is the source code of the sample solution.
  • test/Tests.hs is the test suite.
  • HINTS.md is an optional file containing instructions and/or hints.

Running Tests

In order to be accepted by Travis-CI, every exercise must compile without warnings and the example solution must pass the tests without failures.

To test an exercise, first you need to rename the file src/Example.hs to match the module name, but - because we already have a stub solution in place - we have to move it first, otherwise it will be overwritten.

Running stack test --pedantic compiles and run the tests with -Wall -Werror, but unfortunately it doesn't recompile unchanged source code already compiled with warnings.

To be really sure that everything compiles correctly without warnings, your must first run stack clean.

stack clean
stack test --pedantic

Running HLint

All code in this repository should be as idiomatic as possible, so we enforce in Travis-CI that it returns No hints when processed by HLint.

It is highly recommended to run hlint on your sources before opening a pull request, so you can fix your code before submitting it for review.

If you are certain that a suggestion given by hlint would make the code worse, you can suppress it with annotations in the source file.

License

The MIT License (MIT)

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

Haskell icon

The Haskell icon was designed by Darrin Thompson and Jeff Wheeler. It was released under the HaskellWiki license.

About

Exercism Exercises in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 99.8%
  • Shell 0.2%