-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Library for efficiently building up buffers, one piece at a time -- @package buffer-builder @version 0.1.0.0 module Data.BufferBuilder -- | BufferBuilder sequences actions that append to an implicit, growable -- buffer. Use runBufferBuilder to extract the resulting buffer as -- a ByteString data BufferBuilder a -- | Runs a BufferBuilder and extracts its resulting contents as a -- ByteString runBufferBuilder :: BufferBuilder () -> ByteString appendByte :: Word8 -> BufferBuilder () -- | Appends a character to the buffer, truncating it to the bottom 8 bits. appendChar8 :: Char -> BufferBuilder () -- | Appends a ByteString to the buffer. appendBS :: ByteString -> BufferBuilder () instance Functor BufferBuilder instance Monad BufferBuilder instance MonadReader BWHandle BufferBuilder