proto-lens-0.7.1.5: A lens-based implementation of protocol buffers in Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ProtoLens.Encoding.Wire

Description

Module defining the individual base wire types (e.g. VarInt, Fixed64).

They are used to represent the unknownFields within the proto message.

Upstream docs: https://developers.google.com/protocol-buffers/docs/encoding#structure

Synopsis

Documentation

newtype Tag Source #

A tag that identifies a particular field of the message when converting to/from the wire format.

Constructors

Tag 

Fields

Instances

Instances details
Num Tag Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

(+) :: Tag -> Tag -> Tag #

(-) :: Tag -> Tag -> Tag #

(*) :: Tag -> Tag -> Tag #

negate :: Tag -> Tag #

abs :: Tag -> Tag #

signum :: Tag -> Tag #

fromInteger :: Integer -> Tag #

Show Tag Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

NFData Tag Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

rnf :: Tag -> () #

Eq Tag Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Ord Tag Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

compare :: Tag -> Tag -> Ordering #

(<) :: Tag -> Tag -> Bool #

(<=) :: Tag -> Tag -> Bool #

(>) :: Tag -> Tag -> Bool #

(>=) :: Tag -> Tag -> Bool #

max :: Tag -> Tag -> Tag #

min :: Tag -> Tag -> Tag #

data TaggedValue Source #

A pair of an encoded field and a value.

Constructors

TaggedValue !Tag !WireValue 

data WireValue Source #

The encoding of some unknown field on the wire.

Instances

Instances details
NFData WireValue Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Methods

rnf :: WireValue -> () #

Eq WireValue Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire

Ord WireValue Source # 
Instance details

Defined in Data.ProtoLens.Encoding.Wire