Community
Modules 50

Data.Text.Internal.Fusion.Types

experimental

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.

data CC s

Specialised tuple for case conversion.

CC :: s -> Int64 -> CC s

data PairS a b

Strict pair.

(:*:) :: a -> b -> PairS a b

data Scan s

An intermediate result in a scan.

Scan1 :: Char -> s -> Scan s

Scan2 :: Char -> s -> Scan s

data RS s

Restreaming state.

RS0 :: s -> RS s

RS1 :: s -> Word8 -> RS s

RS2 :: s -> Word8 -> Word8 -> RS s

RS3 :: s -> Word8 -> Word8 -> Word8 -> RS s

data Step s a

Intermediate result in a processing pipeline.

Skip :: s -> Step s a

Yield :: a -> s -> Step s a

data Stream a

A co-recursive type yielding a single element at a time depending on the internal state it carries.

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

empty :: Stream a

The empty stream.

Instances

2
  • instance (Eq a) => Eq (Stream a)
  • instance (Ord a) => Ord (Stream a)
Maintainer
bos@serpentine.com
Portability
GHC
Copyright
(c) Tom Harper 2008-2009, (c) Bryan O'Sullivan 2009, (c) Duncan Coutts 2009, (c) Jasper Van der Jeugt 2011
License
BSD-style
Build record and source files

Community contribution. The service has not verified this documentation. The generator reported 2 diagnostics.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: 0b0724abd14577f7a6c8172d62e3e1c0808feb114d4d379402e17f37e3c7801e

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.