Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class ToBoundedBuilder a where
- type BoundedBuilderLength a :: Nat
- toBuilder :: a -> Builder (BoundedBuilderLength a)
Documentation
class ToBoundedBuilder a where Source #
Variant of To 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.
type BoundedBuilderLength a :: Nat Source #
toBuilder :: a -> Builder (BoundedBuilderLength a) Source #