License | BSD-style |
---|---|
Maintainer | Foundation |
Safe Haskell | None |
Language | Haskell2010 |
Block builder
Documentation
run :: PrimMonad prim => Builder -> prim (Block Word8) #
run the given builder and return the generated block
Emit functions
emitString :: String -> Builder #
add a string in the builder
emitUTF8Char :: Char -> Builder #
emit a UTF8 char in the builder
this function may be replaced by `emit :: Encoding -> Char -> Builder`
unsafe
unsafeRunString :: PrimMonad prim => Builder -> prim String #
run the given builder and return a UTF8String
this action is unsafe as there is no guarantee upon the validity of the content of the built block.