avro-0.4.7.0: Avro serialization support for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Avro.ToAvro

Documentation

class HasAvroSchema a => ToAvro a where Source #

Methods

toAvro :: a -> Value Schema Source #

Instances
ToAvro Bool Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Double Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Float Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Int Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Int -> Value Schema Source #

ToAvro Int32 Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Int64 Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro () Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: () -> Value Schema Source #

ToAvro ByteString Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro ByteString Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Text Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Text Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro DiffTime Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro Day Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Day -> Value Schema Source #

ToAvro UUID Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro a => ToAvro [a] Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: [a] -> Value Schema Source #

ToAvro a => ToAvro (Maybe a) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Maybe a -> Value Schema Source #

ToAvro a => ToAvro (Identity a) Source # 
Instance details

Defined in Data.Avro.ToAvro

(Unbox a, ToAvro a) => ToAvro (Vector a) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Vector a -> Value Schema Source #

ToAvro a => ToAvro (Vector a) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Vector a -> Value Schema Source #

(ToAvro a, ToAvro b) => ToAvro (Either a b) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Either a b -> Value Schema Source #

ToAvro a => ToAvro (HashMap Text a) Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro a => ToAvro (HashMap Text a) Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro a => ToAvro (HashMap String a) Source # 
Instance details

Defined in Data.Avro.ToAvro

ToAvro a => ToAvro (Map Text a) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Map Text a -> Value Schema Source #

ToAvro a => ToAvro (Map Text a) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Map Text a -> Value Schema Source #

ToAvro a => ToAvro (Map String a) Source # 
Instance details

Defined in Data.Avro.ToAvro

(KnownNat p, KnownNat s) => ToAvro (Decimal p s) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Decimal p s -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c) => ToAvro (Either3 a b c) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either3 a b c -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d) => ToAvro (Either4 a b c d) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either4 a b c d -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e) => ToAvro (Either5 a b c d e) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either5 a b c d e -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e, ToAvro f) => ToAvro (Either6 a b c d e f) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either6 a b c d e f -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e, ToAvro f, ToAvro g) => ToAvro (Either7 a b c d e f g) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either7 a b c d e f g -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e, ToAvro f, ToAvro g, ToAvro h) => ToAvro (Either8 a b c d e f g h) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either8 a b c d e f g h -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e, ToAvro f, ToAvro g, ToAvro h, ToAvro i) => ToAvro (Either9 a b c d e f g h i) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either9 a b c d e f g h i -> Value Schema Source #

(ToAvro a, ToAvro b, ToAvro c, ToAvro d, ToAvro e, ToAvro f, ToAvro g, ToAvro h, ToAvro i, ToAvro j) => ToAvro (Either10 a b c d e f g h i j) Source # 
Instance details

Defined in Data.Avro.EitherN

Methods

toAvro :: Either10 a b c d e f g h i j -> Value Schema Source #

(.=) :: ToAvro a => Text -> a -> (Text, Value Schema) Source #