Haskell port of QuantLib. Single-package library: all code lives in src/ under the QuantLib.* namespace.
cabal build # primary verification (this is all CI runs)
cabal test # NOTE: test suite is a stub (one trivial property) — passing tests prove nothing
cabal run mctest # Monte Carlo demo; prints histogram as CSV lines to stdout- CI (
.drone.yml) builds with cabal on GHC 9.4.8.stack.yaml(lts-18.28, GHC 8.10) is stale — don't use stack. - Library builds with
-Wall— fix warnings in code you touch.
hmatrix / hmatrix-gsl / hmatrix-special require system BLAS, LAPACK, and GSL. On Debian (as in CI): apt install libblas-dev liblapack-dev libgsl-dev. Build fails at dependency setup if these are missing.
- No automatic module discovery: new files must be added to
exposed-modulesorother-modulesinhquantlib.cabalor they won't build. - Tests (
src/Test.hs) and the demo (src/Tests/McTest.hs) live insidesrc/(hs-source-dirs: src), nottest//app/. - Date/calendar logic (DayCounter etc.) lives in the external
hquantlib-timepackage (>= 0.0.5.1), not in this repo. - The
optimizecabal flag (default: on) adds-funbox-strict-fields -fspec-constr -fdicts-cheap; disable withcabal build -f -optimizefor faster iteration.