Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines types which are shared by the encoding and decoding modules.
Synopsis
- newtype FieldNumber = FieldNumber {}
- fieldNumber :: Word64 -> FieldNumber
- data WireType
Message Structure
newtype FieldNumber Source #
A FieldNumber
identifies a field inside a protobufs message.
This library makes no attempt to generate these automatically, or even make sure that field numbers are provided in increasing order. Such things are left to other, higher-level libraries.
Instances
fieldNumber :: Word64 -> FieldNumber Source #
Create a FieldNumber
given the (one-based) integer which would label
the field in the corresponding .proto file.