Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class ToBuilder a where Source #
Types that can be encoded as a builder. Human-readable encodings are used when possible. For example, numbers are encoded an ascii-encoded decimal characters. UTF-8 is preferred for textual types. For types that represent arbitrary bytes (e.g. Bytes, ByteString), the bytes are preserved.
The goal of this typeclass is to reduce the size of builders produced by quasiquotation.
Instances
ToBuilder Int16 Source # | Uses |
ToBuilder Int32 Source # | Uses |
ToBuilder Int64 Source # | Uses |
ToBuilder Int8 Source # | Uses |
ToBuilder Word16 Source # | Uses |
ToBuilder Word32 Source # | Uses |
ToBuilder Word64 Source # | Uses |
ToBuilder Word8 Source # | Uses |
ToBuilder Builder Source # | Identity |
ToBuilder Bytes Source # | Uses |
ToBuilder ShortByteString Source # | Uses |
Defined in Data.Bytes.Builder.Class toBuilder :: ShortByteString -> Builder Source # | |
ToBuilder ByteArray Source # | Uses |
ToBuilder ShortText Source # | Uses |
ToBuilder String Source # | Uses |
ToBuilder Double Source # | uses |
ToBuilder Int Source # | Uses |
ToBuilder Word Source # | Uses |