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