bytebuild-0.3.9.0: Serialize to a small byte arrays
Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Builder.Bounded.Class

Synopsis

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.

Associated Types

type BoundedBuilderLength a :: Nat Source #

Instances

Instances details
ToBoundedBuilder Int Source #

Uses intDec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Int :: Nat Source #

ToBoundedBuilder Int8 Source #

Uses int8Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Int8 :: Nat Source #

ToBoundedBuilder Int16 Source #

Uses int16Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Int16 :: Nat Source #

ToBoundedBuilder Int32 Source #

Uses int32Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Int32 :: Nat Source #

ToBoundedBuilder Int64 Source #

Uses int64Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Int64 :: Nat Source #

ToBoundedBuilder Word Source #

Uses wordDec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Word :: Nat Source #

ToBoundedBuilder Word8 Source #

Uses word8Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Word8 :: Nat Source #

ToBoundedBuilder Word16 Source #

Uses word16Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Word16 :: Nat Source #

ToBoundedBuilder Word32 Source #

Uses word32Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Word32 :: Nat Source #

ToBoundedBuilder Word64 Source #

Uses word64Dec.

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength Word64 :: Nat Source #

ToBoundedBuilder (Builder n) Source #

Identity

Instance details

Defined in Data.Bytes.Builder.Bounded.Class

Associated Types

type BoundedBuilderLength (Builder n) :: Nat Source #