This directory is organized as follows:
ledger/formal-speccontains the LaTeX specification of Cardano ledger semantics.ledger/executable-speccontains an executable specification of Cardano ledger semantics.chain/formal-speccontains the LaTeX specification of Cardano chain semantics.chain/executable-speccontains an executable specification of Cardano chain semantics.
To build the LaTeX document run:
nix develop --command makeFor a continuous compilation of the LaTeX file run:
nix develop --command make watchThe executable specifications can be built and tested using Nix.
To build to go to the directory in which the executable specifications are
(e.g. ledger/executable-spec) and then run:
nix buildTo build, or run, tests:
nix build .#tests
nix run .#testsFor running the tests you can use, in a nix develop shell:
cabal new-test <target>Example, while in the byron/ledger/executable-spec directory one can run:
cabal new-test ledger-delegation-testTo have the warnings not being treated as errors the -Wwarn ghc flag can be
used to negate the effect of -Werror, e.g.:
cabal new-test ledger-delegation-test --ghc-options='-Wwarn'