codec-libevent-0.1.2: Cross-platform structure serialisation

Stabilityexperimental

Codec.Libevent.Parse

Contents

Description

This module parses libevent http://monkey.org/~provos/libevent tagged data structures as implimented in libevent-1.4.0-beta. These data structures are described in a .rpc file.

Synopsis

Data structures

data RPCFile Source

This is a libevent .rpc file - just a list of the structures within

Constructors

RPCFile 

Fields

rpcstructs :: [RPCStruct]
 

Instances

data RPCStruct Source

An RPC structure has a name and a list of elements

Constructors

RPCStruct 

Instances

data RPCElem Source

An RPC element is a tagged member

Instances

data Presence Source

Constructors

Required 
Optional 
Repeated 

Instances

data Type Source

Instances

Parsing functions

parseRPCFile :: FilePath -> IO (Either ParseError RPCFile)Source

Parse the given filename

parseRPC :: String -> Either ParseError RPCFileSource

Parse the given string as an RPC file