hydra-0.1.0: Type-aware transformations for data and functional programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Ext.Avro.Schema

Description

A model for Avro schemas. Based on the Avro 1.11.1 specification: | https://avro.apache.org/docs/1.11.1/specification)

Documentation

data Array Source #

Constructors

Array 

Fields

Instances

Instances details
Read Array Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Array Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Array -> ShowS #

show :: Array -> String #

showList :: [Array] -> ShowS #

Eq Array Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Array -> Array -> Bool #

(/=) :: Array -> Array -> Bool #

Ord Array Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Array -> Array -> Ordering #

(<) :: Array -> Array -> Bool #

(<=) :: Array -> Array -> Bool #

(>) :: Array -> Array -> Bool #

(>=) :: Array -> Array -> Bool #

max :: Array -> Array -> Array #

min :: Array -> Array -> Array #

data Enum_ Source #

Constructors

Enum_ 

Fields

  • enumSymbols :: [String]

    a JSON array, listing symbols, as JSON strings. All symbols in an enum must be unique; duplicates are prohibited. Every symbol must match the regular expression [A-Za-z_][A-Za-z0-9_]* (the same requirement as for names)

  • enumDefault :: Maybe String

    A default value for this enumeration, used during resolution when the reader encounters a symbol from the writer that isn’t defined in the reader’s schema. The value provided here must be a JSON string that’s a member of the symbols array

Instances

Instances details
Read Enum_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Enum_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Enum_ -> ShowS #

show :: Enum_ -> String #

showList :: [Enum_] -> ShowS #

Eq Enum_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Enum_ -> Enum_ -> Bool #

(/=) :: Enum_ -> Enum_ -> Bool #

Ord Enum_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Enum_ -> Enum_ -> Ordering #

(<) :: Enum_ -> Enum_ -> Bool #

(<=) :: Enum_ -> Enum_ -> Bool #

(>) :: Enum_ -> Enum_ -> Bool #

(>=) :: Enum_ -> Enum_ -> Bool #

max :: Enum_ -> Enum_ -> Enum_ #

min :: Enum_ -> Enum_ -> Enum_ #

data Field Source #

Constructors

Field 

Fields

Instances

Instances details
Read Field Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Field Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Eq Field Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Ord Field Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Field -> Field -> Ordering #

(<) :: Field -> Field -> Bool #

(<=) :: Field -> Field -> Bool #

(>) :: Field -> Field -> Bool #

(>=) :: Field -> Field -> Bool #

max :: Field -> Field -> Field #

min :: Field -> Field -> Field #

data Fixed Source #

Constructors

Fixed 

Fields

  • fixedSize :: Int

    an integer, specifying the number of bytes per value

Instances

Instances details
Read Fixed Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Fixed Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Fixed -> ShowS #

show :: Fixed -> String #

showList :: [Fixed] -> ShowS #

Eq Fixed Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Fixed -> Fixed -> Bool #

(/=) :: Fixed -> Fixed -> Bool #

Ord Fixed Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Fixed -> Fixed -> Ordering #

(<) :: Fixed -> Fixed -> Bool #

(<=) :: Fixed -> Fixed -> Bool #

(>) :: Fixed -> Fixed -> Bool #

(>=) :: Fixed -> Fixed -> Bool #

max :: Fixed -> Fixed -> Fixed #

min :: Fixed -> Fixed -> Fixed #

data Map_ Source #

Constructors

Map_ 

Fields

Instances

Instances details
Read Map_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Map_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Map_ -> ShowS #

show :: Map_ -> String #

showList :: [Map_] -> ShowS #

Eq Map_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Map_ -> Map_ -> Bool #

(/=) :: Map_ -> Map_ -> Bool #

Ord Map_ Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Map_ -> Map_ -> Ordering #

(<) :: Map_ -> Map_ -> Bool #

(<=) :: Map_ -> Map_ -> Bool #

(>) :: Map_ -> Map_ -> Bool #

(>=) :: Map_ -> Map_ -> Bool #

max :: Map_ -> Map_ -> Map_ #

min :: Map_ -> Map_ -> Map_ #

data Named Source #

Constructors

Named 

Fields

Instances

Instances details
Read Named Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Named Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Named -> ShowS #

show :: Named -> String #

showList :: [Named] -> ShowS #

Eq Named Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Named -> Named -> Bool #

(/=) :: Named -> Named -> Bool #

Ord Named Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Named -> Named -> Ordering #

(<) :: Named -> Named -> Bool #

(<=) :: Named -> Named -> Bool #

(>) :: Named -> Named -> Bool #

(>=) :: Named -> Named -> Bool #

max :: Named -> Named -> Named #

min :: Named -> Named -> Named #

data Order Source #

Instances

Instances details
Read Order Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Order Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Order -> ShowS #

show :: Order -> String #

showList :: [Order] -> ShowS #

Eq Order Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Order -> Order -> Bool #

(/=) :: Order -> Order -> Bool #

Ord Order Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Order -> Order -> Ordering #

(<) :: Order -> Order -> Bool #

(<=) :: Order -> Order -> Bool #

(>) :: Order -> Order -> Bool #

(>=) :: Order -> Order -> Bool #

max :: Order -> Order -> Order #

min :: Order -> Order -> Order #

data Primitive Source #

Constructors

PrimitiveNull

no value

PrimitiveBoolean

A binary value

PrimitiveInt

32-bit signed integer

PrimitiveLong

64-bit signed integer

PrimitiveFloat

single precision (32-bit) IEEE 754 floating-point number

PrimitiveDouble

double precision (64-bit) IEEE 754 floating-point number

PrimitiveBytes

sequence of 8-bit unsigned bytes

PrimitiveString

unicode character sequence

data Record Source #

Constructors

Record 

Fields

Instances

Instances details
Read Record Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Record Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Eq Record Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Record -> Record -> Bool #

(/=) :: Record -> Record -> Bool #

Ord Record Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

data Schema Source #

Constructors

SchemaArray Array 
SchemaMap Map_ 
SchemaNamed Named 
SchemaPrimitive Primitive 
SchemaReference String

A reference by name to a previously defined type

SchemaUnion Union 

Instances

Instances details
Read Schema Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Schema Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Eq Schema Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Schema -> Schema -> Bool #

(/=) :: Schema -> Schema -> Bool #

Ord Schema Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

newtype Union Source #

Constructors

Union 

Fields

Instances

Instances details
Read Union Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Show Union Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

showsPrec :: Int -> Union -> ShowS #

show :: Union -> String #

showList :: [Union] -> ShowS #

Eq Union Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

(==) :: Union -> Union -> Bool #

(/=) :: Union -> Union -> Bool #

Ord Union Source # 
Instance details

Defined in Hydra.Ext.Avro.Schema

Methods

compare :: Union -> Union -> Ordering #

(<) :: Union -> Union -> Bool #

(<=) :: Union -> Union -> Bool #

(>) :: Union -> Union -> Bool #

(>=) :: Union -> Union -> Bool #

max :: Union -> Union -> Union #

min :: Union -> Union -> Union #