mu-avro-0.1.0.0: Avro serialization support for Mu microservices

Safe HaskellNone
LanguageHaskell2010

Mu.Quasi.Avro

Contents

Description

This module turns schema definitions written in Avro IDL into Mu Schemas. We provide versions for writing the IDL inline (avro) and import it from a file (avroFile).

Note: as of now, only the JSON-based IDL format is supported, not the Java-like one.

Synopsis

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.

Only for internal use

schemaFromAvroType :: Type -> Q Type Source #

Turns a schema from Avro into a Template Haskell Type.