text-1.1.1.3: An efficient packed Unicode text type.

PortabilityGHC
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellSafe-Inferred

Data.Text.Internal.Fusion.Types

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!

Core stream fusion functionality for text.

Synopsis

Documentation

data CC s Source

Specialised tuple for case conversion.

Constructors

CC !s !Char !Char 

data M a Source

Specialised, strict Maybe-like type.

Constructors

N 
J !a 

data PairS a b Source

Constructors

!a :*: !b 

data RS s Source

Constructors

RS0 !s 
RS1 !s !Word8 
RS2 !s !Word8 !Word8 
RS3 !s !Word8 !Word8 !Word8 

data Step s a Source

Constructors

Done 
Skip !s 
Yield !a !s 

data Stream a Source

Constructors

forall s . Stream (s -> Step s a) !s !Size 

Instances

Eq a => Eq (Stream a) 
Ord a => Ord (Stream a) 

data Switch Source

Allow a function over a stream to switch between two states.

Constructors

S1 
S2 

empty :: Stream aSource

The empty stream.