Skip to content

Notes and solutions to exercises of "Haskell Programming from first principles"

License

Notifications You must be signed in to change notification settings

BoeingX/haskell-programming-from-first-principles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ffb637f · Jul 25, 2020

History

37 Commits
Mar 19, 2020
Nov 5, 2018
Jul 25, 2020
Jul 25, 2020
Oct 6, 2018
Sep 16, 2018
Oct 19, 2018
Nov 18, 2018
Sep 16, 2018
Sep 16, 2018
Nov 6, 2018
Sep 16, 2018
Nov 8, 2018
Jul 25, 2020

Repository files navigation

Haskell Programming from First Principles

Build Status CircleCI License

This repository hosts my notes and solutions to exercises in the book Haskell Programming from First Principles.

Dependencies

The only dependency is Stack. Once setup, Stack takes care of any Haskell package dependencies.

Project structure

This repository is organized as a single Stack project as follows

.
├── benchmark/
├── ChangeLog.md
├── haskell-programming-from-first-principles.cabal
├── LICENSE
├── package.yaml
├── README.md
├── Setup.hs
├── src/
├── stack.yaml
└── test/

where src are solutions whose name follows the pattern

ChapterName/SectionName/ExerciseName.hs

test and benchmark are test and benchmark suites following the same naming convention.

Run tests

All test suites can be discovered by hspec-discover. To run tests, simply do

stack test

or

stack --fast test

if you want avoid GHC optimization (hence faster).

Run benchmarks

Run

stack bench

Never use the --fast flag for benchmarks otherwise you will get wrong results.

Reference benchmark results are included in each benchmark file as block comment.

About

Notes and solutions to exercises of "Haskell Programming from first principles"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published