text-1.2.2.1: An efficient packed Unicode text type.

Copyright(c) Roman Leshchinskiy 2008, (c) Bryan O'Sullivan 2009
LicenseBSD-style
Maintainerbos@serpentine.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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

smaller :: Size -> Size -> Size Source

Minimum of two size hints.

larger :: Size -> Size -> Size Source

Maximum of two size hints.

upperBound :: Int -> Size -> Int Source

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

lowerBound :: Int -> Size -> Int Source

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