Waargonaut.Encode.Builder
Description
Builder structures to help with turning Json into a textual encoding.
Json
textBuilder :: Builder Text Builder Source #
A Text builder
Text
bsBuilder :: Builder ByteString Builder Source #
A ByteString builder
ByteString
jTypesBuilder :: (IsString t, Monoid b) => Builder t b -> (Builder t b -> WS -> b) -> JType WS Json -> b Source #
A general builder function for working with JType values.
JType
waargonautBuilder :: (IsString t, Monoid b) => (Builder t b -> WS -> b) -> Builder t b -> Json -> b Source #
Using the given whitespace builder, create a builder for a given Json value.