Popularity
2.4
Declining
Activity
0.0
-
3
1
1

Monthly Downloads: 71
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Control     Contract    
Latest version: v0.1.2.3

assert-failure alternatives and similar packages

Based on the "Control" category.
Alternatively, view assert-failure alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of assert-failure or a related project?

Add another 'Control' Package

README

assert-failure Build Status Hackage

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

ghc-options: -fno-ignore-asserts

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.