language-protobuf-1.0.1: Language definition and parser for Protocol Buffers.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.ProtocolBuffers.Types

Description

Synopsis

Documentation

data ProtoBuf Source #

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

Instances

Instances details
Show ProtoBuf Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq 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.

Instances

Instances details
Show Declaration Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq Declaration Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data Option where Source #

Constructors

Option :: FullIdentifier -> Constant -> Option 

Instances

Instances details
Show Option Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq Option Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Methods

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

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

data Method where Source #

Constructors

Method :: Identifier -> Repetition -> FieldType -> Repetition -> FieldType -> [Option] -> Method 

Instances

Instances details
Show Method Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq Method Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Methods

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

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

data ImportType Source #

Constructors

Normal 
Weak 
Public 

Instances

Instances details
Show ImportType Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq ImportType Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data Constant where Source #

Instances

Instances details
Show Constant Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq Constant Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data EnumField where Source #

Constructors

EnumField :: FieldName -> FieldNumber -> [Option] -> EnumField 

Instances

Instances details
Show EnumField Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq EnumField Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

data Repetition Source #

Constructors

Single 
Repeated 

Instances

Instances details
Show Repetition Source # 
Instance details

Defined in Language.ProtocolBuffers.Types

Eq Repetition Source # 
Instance details

Defined in Language.ProtocolBuffers.Types