blaze-builder-0.3.3.4: Efficient buffered output.

Copyright(c) 2010 Simon Meier
LicenseBSD3-style (see LICENSE)
MaintainerSimon Meier <iridcode@gmail.com>
Stabilityexperimental
Portabilitytested on GHC only
Safe HaskellNone
LanguageHaskell98

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
 

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

putBuilder :: Builder -> Put () Source

Put the given builder.

fromPut :: Put a -> Builder Source

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

putLiftIO :: IO a -> Put a Source

Lift the given IO action.