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

Safe HaskellNone
LanguageHaskell2010

Language.ProtocolBuffers.Parser

Contents

Description

Synopsis

Parse and sort out a whole file

parseProtoBufFile :: FilePath -> IO (Either (ParseErrorBundle Text Char) ProtoBuf) Source #

Parse a whole file into a ProtoBuf structure. This function sorts together the different declarations.

parseProtoBuf :: Text -> Either (ParseErrorBundle Text Char) ProtoBuf Source #

Parse Text into a ProtoBuf structure. This function sorts together the different declarations.

Parse declarations