A small project to calculate probabilities based on a given distribution. For Continuous Distributions we also have some calculus implemented.
- Install Stack (package manager)
- Install HLint (linter)
All tests are written under test/
.
To run the tests, use the following command:
$ stack test
Or if you'd prefer to run them in the GHCi then:
$ stack ghci test/ExpressionsSpec.hs
ExpressionsSpec> main (or hspec <specific-spec>)
All library source code is under src/
.
You can boot them into the GHCi for use via:
$ stack ghci src/<FileName>.hs