basement-0.0.7: Foundation scrap box of array & string
Basement.String.Builder
Contents
Description
String builder
Synopsis
data Builder Source #
Instances
Methods
(<>) :: Builder -> Builder -> Builder #
sconcat :: NonEmpty Builder -> Builder #
stimes :: Integral b => b -> Builder -> Builder #
mempty :: Builder #
mappend :: Builder -> Builder -> Builder #
mconcat :: [Builder] -> Builder #
run :: PrimMonad prim => Builder -> prim (String, Maybe ValidationFailure, UArray Word8) Source #
runUnsafe :: PrimMonad prim => Builder -> prim String Source #
run the given builder and return the generated String
prefer run
run
emit :: String -> Builder Source #
add a string in the builder
emitChar :: Char -> Builder Source #
emit a UTF8 char in the builder
unsafeStringBuilder :: Builder -> Builder Source #