blaze-builder-0.2.1.4: Efficient buffered output.

Portabilitytested on GHC only
Stabilityexperimental
MaintainerSimon Meier <iridcode@gmail.com>

Blaze.ByteString.Builder.Internal.Types

Description

Core types and functions for the Builder monoid and the Put monad based based on the 'blaze-builder' library by Jasper van der Jeugt and Simon Meier.

Synopsis

Documentation

data BufRange Source

Constructors

BufRange !(Ptr Word8) !(Ptr Word8) 

newtype BuildStep a Source

Constructors

BuildStep 

newtype Builder Source

Constructors

Builder 

Fields

unBuilder :: forall r. BuildStep r -> BuildStep r
 

Instances

newtype Put a Source

Constructors

Put 

Fields

unPut :: forall r. (a -> BuildStep r) -> BuildStep r
 

Instances

putBuildStepCont :: (forall r. (a -> BufRange -> IO (BuildSignal r)) -> BufRange -> IO (BuildSignal r)) -> Put aSource

putBuilder :: Builder -> Put ()Source

Put the given builder.

fromPut :: Put a -> BuilderSource

Ignore the value of a put and only exploit its output side effect.