language-protobuf-1.0.1: Language definition and parser for Protocol Buffers.

Safe HaskellSafe
LanguageHaskell2010

Language.ProtocolBuffers.Types

Description

Elements in the Protocol Buffers syntax, as defined in https://developers.google.com/protocol-buffers/docs/reference/proto3-spec

Synopsis

Documentation

data ProtoBuf Source #

Whole definition, in which declarations are sorted out by their form.

Instances
Eq ProtoBuf Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Show ProtoBuf Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

safeHead :: [a] -> Maybe a Source #

data Declaration where Source #

Declarations, that is, anything which may appear in the top-level.

data Option where Source #

Constructors

Option :: FullIdentifier -> Constant -> Option 
Instances
Eq Option Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Methods

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

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

Show Option Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data Method where Source #

Constructors

Method :: Identifier -> Repetition -> FieldType -> Repetition -> FieldType -> [Option] -> Method 
Instances
Eq Method Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Methods

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

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

Show Method Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data EnumField where Source #

Constructors

EnumField :: FieldName -> FieldNumber -> [Option] -> EnumField 
Instances
Eq EnumField Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Show EnumField Source # 
Instance details

Defined in Language.ProtocolBuffers.Types