Basement.String.Builder
Contents
Description
String builder
data Builder #
Defined in Basement.String.Builder
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) #
runUnsafe :: PrimMonad prim => Builder -> prim String #
run the given builder and return the generated String
prefer run
run
emit :: String -> Builder #
add a string in the builder
emitChar :: Char -> Builder #
emit a UTF8 char in the builder
unsafeStringBuilder :: Builder -> Builder #