Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- avdl :: String -> String -> FilePath -> FilePath -> Q [Dec]
- avro :: QuasiQuoter
- avroFile :: QuasiQuoter
- schemaFromAvroType :: Schema -> Q Type
Service generation from .avdl
files
avdl :: String -> String -> FilePath -> FilePath -> Q [Dec] Source #
Reads a .avdl
file and generates:
* A Schema
with all the record
types, using the name given as first argument.
* A Service
declaration containing all the methods
defined in the file.
Quasi-quoters for .avsc
files
avro :: QuasiQuoter Source #
Imports an avro definition written in-line as a Schema
.
avroFile :: QuasiQuoter Source #
Imports an avro definition from a file as a Schema
.