Helpers for Control.Exception.assert https://github.com/liyang/assert
|Latest on Hackage:||0.0.1.2|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
GHC supports compile-time toggling of run-time assertions via the
-fignore-asserts flag, which only effects a behavioural change in
Control.Exception.assert. Furthermore the reported location only gives
the use site of the aforementioned, making it difficult to abstract over
and hence cumbersome to use.
This package aims to make assertions more convenient, and also provides
a rule to rewrite assertions to
-fignore-asserts is used.