Syntactic sugar improving 'assert' and 'error'
|Version on this page:||0.1.2.5|
|LTS Haskell 20.23:||0.1.2.6|
|Stackage Nightly 2023-05-31:||0.1.2.6|
|Latest on Hackage:||0.1.2.6|
Maintained by Mikolaj Konarski
This version can be pinned in stack with:
Module documentation for 0.1.2.5
Depends on 3 packages(full list with versions):
Used by 1 package in lts-16.31(full list with versions):
This library contains syntactic sugar that makes it easier to write simple contracts with ‘assert’ and ‘error’ and report the values that violate contracts. The original ‘assert’ function is here re-exported for convenience.
Make sure to enable assertions for your cabal package, e.g., by setting
in your .cabal file. Otherwise, some of the functions will have no effect at all.
The library emerged from the chaos of the tons of assertions (sometimes augmented by comments and trace printouts) and ‘error’ calls in the LambdaHack game engine.