vector-0.4: Efficient ArraysSource codeContentsIndex
Data.Vector.Fusion.Stream.Size
Portabilityportable
Stabilityexperimental
MaintainerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Description
Size hints
Synopsis
data Size
= Exact Int
| Max Int
| Unknown
smaller :: Size -> Size -> Size
larger :: Size -> Size -> Size
toMax :: Size -> Size
upperBound :: Size -> Maybe Int
Documentation
data Size Source
Size hint
Constructors
Exact IntExact size
Max IntUpper bound on the size
UnknownUnknown size
show/hide Instances
smaller :: Size -> Size -> SizeSource
Minimum of two size hints
larger :: Size -> Size -> SizeSource
Maximum of two size hints
toMax :: Size -> SizeSource
Convert a size hint to an upper bound
upperBound :: Size -> Maybe IntSource
Compute the maximum size from a size hint if possible
Produced by Haddock version 2.4.2