Safe Haskell | None |
---|---|
Language | Haskell2010 |
Just import the module and you can turn any
value with a ToSchema
and FromSchema
from
and to Avro values.
Orphan instances
ToSchemalessTerm Value Source # | |
toSchemalessTerm :: Value -> Term | |
ToSchemalessValue Value Source # | |
toSchemalessValue :: Value -> FieldValue | |
FromAvro (FieldValue sch v) => FromAvro (FieldValue sch ('TMap ('TPrimitive String :: FieldTypeB Type typeName) v)) Source # | |
FromAvro (FieldValue sch v) => FromAvro (FieldValue sch ('TMap ('TPrimitive Text :: FieldTypeB Type typeName) v)) Source # | |
FromAvro (FieldValue sch t) => FromAvro (FieldValue sch ('TList t)) Source # | |
FromAvro (FieldValue sch t) => FromAvro (FieldValue sch ('TOption t)) Source # | |
(KnownName t, FromAvro (Term sch (sch :/: t))) => FromAvro (FieldValue sch ('TSchematic t :: FieldTypeB Type typeName)) Source # | |
FromAvro t => FromAvro (FieldValue sch ('TPrimitive t :: FieldTypeB Type typeName)) Source # | |
FromAvro (FieldValue sch ('TNull :: FieldTypeB Type typeName)) Source # | |
FromAvroUnion sch choices => FromAvro (FieldValue sch ('TUnion choices)) Source # | |
(KnownName name, FromAvroFields sch args) => FromAvro (Term sch ('DRecord name args)) Source # | |
FromAvro (FieldValue sch t) => FromAvro (Term sch ('DSimple t :: TypeDefB Type typeName fieldName)) Source # | |
(KnownName name, FromAvroEnum choices) => FromAvro (Term sch ('DEnum name choices :: TypeDefB Type typeName fieldName)) Source # | |
ToAvro (FieldValue sch v) => ToAvro (FieldValue sch ('TMap ('TPrimitive String :: FieldTypeB Type typeName) v)) Source # | |
ToAvro (FieldValue sch v) => ToAvro (FieldValue sch ('TMap ('TPrimitive Text :: FieldTypeB Type typeName) v)) Source # | |
ToAvro (FieldValue sch t) => ToAvro (FieldValue sch ('TList t)) Source # | |
ToAvro (FieldValue sch t) => ToAvro (FieldValue sch ('TOption t)) Source # | |
(KnownName t, ToAvro (Term sch (sch :/: t))) => ToAvro (FieldValue sch ('TSchematic t :: FieldTypeB Type typeName)) Source # | |
ToAvro t => ToAvro (FieldValue sch ('TPrimitive t :: FieldTypeB Type typeName)) Source # | |
ToAvro (FieldValue sch ('TNull :: FieldTypeB Type typeName)) Source # | |
ToAvroUnion sch choices => ToAvro (FieldValue sch ('TUnion choices)) Source # | |
(KnownName name, ToAvroFields sch args, HasAvroSchemaFields sch args) => ToAvro (Term sch ('DRecord name args)) Source # | |
ToAvro (FieldValue sch t) => ToAvro (Term sch ('DSimple t :: TypeDefB Type typeName fieldName)) Source # | |
(KnownName name, ToAvroEnum choices, HasAvroSchemaEnum choices) => ToAvro (Term sch ('DEnum name choices :: TypeDefB Type typeName fieldName)) Source # | |
HasAvroSchema' (FieldValue sch t) => HasAvroSchema (FieldValue sch t) Source # | |
(TypeError ('Text "you should never use HasAvroSchema directly on Term, use WithSchema") :: Constraint) => HasAvroSchema (Term sch t) Source # | |
(FromSchema sch sty t, FromAvro (Term sch (sch :/: sty))) => FromAvro (WithSchema sch sty t) Source # | |
(ToSchema sch sty t, ToAvro (Term sch (sch :/: sty))) => ToAvro (WithSchema sch sty t) Source # | |
HasAvroSchema' (Term sch (sch :/: sty)) => HasAvroSchema (WithSchema sch sty t) Source # | |