Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.ProtocolBuffers.Parser
Description
Parser for the proto3 spec, as defined in https://developers.google.com/protocol-buffers/docs/reference/proto3-spec.
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 declarations
parseProtoBufDeclarations :: Text -> Either (ParseErrorBundle Text Char) [Declaration] Source #
Parse all the declarations in a Text
.