License | BSD-3-Clause |
---|---|
Maintainer | Jamie Willis |
Stability | unstable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module exposes Coins
and the relevant operations. These are used by
constant input analysis to side-step unnecessary length checks and character
reads (in the case of lookahead).
Since: 1.5.0.0
Documentation
Packages together the known input that can be consumed after a length-check with the number of characters that can be rewound on a lookahead backtrack.
Since: 1.5.0.0
Coins | |
|
minCoins :: Coins -> Coins -> Coins Source #
Takes the pairwise min of two Coins
values.
Since: 1.5.0.0
canReclaim :: Coins -> Int Source #