text-1.1.1.2: An efficient packed Unicode text type.

Portabilityportable
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellSafe-Inferred

Data.Text.Internal.Fusion.Size

Description

Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!

Size hints.

Synopsis

Documentation

data Size Source

Instances

smaller :: Size -> Size -> SizeSource

Minimum of two size hints.

larger :: Size -> Size -> SizeSource

Maximum of two size hints.

upperBound :: Int -> Size -> IntSource

Compute the maximum size from a size hint, if possible.

lowerBound :: Int -> Size -> IntSource

Compute the maximum size from a size hint, if possible.