Copyright | (c) Roman Leshchinskiy 2008-2010 |
---|---|
License | BSD-style |
Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Size hints for streams.
Documentation
clampedSubtract :: Size -> Size -> Size #
Subtract two sizes with clamping to 0, for drop-like things
smallerThan :: Int -> Size -> Size #
Select a safe smaller than known size.
upperBound :: Size -> Maybe Int #
Compute the maximum size from a size hint if possible
lowerBound :: Size -> Int #
Compute the minimum size from a size hint