foundation-0.0.17: Alternative prelude with batteries and no dependencies

License | BSD-style
Maintainer | Foundation
Safe Haskell | None
Language | Haskell2010

Foundation.String.Builder

Description

String Builder

This is extremely bad implementation of a builder implementation but provide a very similar API to the future fast implementation; So, in the spirit of getting started and to be able to start using the API, we don't wait for the fast implementation.

# Documentation

data Builder Source #

Instances

IsString Builder Source # |
Methods fromString :: String -> Builder #
Semigroup Builder Source # |
Methods (<>) :: Builder -> Builder -> Builder # sconcat :: NonEmpty Builder -> Builder # stimes :: Integral b => b -> Builder -> Builder #
Monoid Builder Source # |
Methods mempty :: Builder # mappend :: Builder -> Builder -> Builder # mconcat :: [Builder] -> Builder #

emit :: String -> Builder Source #

emitChar :: Char -> Builder Source #

toString :: Builder -> String Source #