Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language definition for AVRO (.avdl
) files,
as defined in http://avro.apache.org/docs/1.8.2/spec.html.
Synopsis
- data Method = Method {}
- data Argument = Argument {}
- data ImportType
- data Annotation = Annotation {}
- type Aliases = [TypeName]
- newtype Namespace = Namespace [Text]
- data Protocol = Protocol {}
- data Schema where
- Null
- Boolean
- Int { }
- Long { }
- Float
- Double
- Bytes { }
- String { }
- Array { }
- Map { }
- NamedType TypeName
- Record { }
- Enum { }
- Union { }
- Fixed {
- name :: TypeName
- aliases :: [TypeName]
- size :: Int
- logicalTypeF :: Maybe LogicalTypeFixed
- pattern String' :: Schema
- pattern Bytes' :: Schema
- pattern Long' :: Schema
- pattern Int' :: Schema
Documentation
Type for methods/messages that belong to a protocol.
Helper type for the arguments of Method
.
data ImportType Source #
Type for the possible import types in Protocol
.
Instances
Eq ImportType Source # | |
Defined in Language.Avro.Types (==) :: ImportType -> ImportType -> Bool # (/=) :: ImportType -> ImportType -> Bool # | |
Ord ImportType Source # | |
Defined in Language.Avro.Types compare :: ImportType -> ImportType -> Ordering # (<) :: ImportType -> ImportType -> Bool # (<=) :: ImportType -> ImportType -> Bool # (>) :: ImportType -> ImportType -> Bool # (>=) :: ImportType -> ImportType -> Bool # max :: ImportType -> ImportType -> ImportType # min :: ImportType -> ImportType -> ImportType # | |
Show ImportType Source # | |
Defined in Language.Avro.Types showsPrec :: Int -> ImportType -> ShowS # show :: ImportType -> String # showList :: [ImportType] -> ShowS # |
data Annotation Source #
Type for special annotations.
Instances
Eq Annotation Source # | |
Defined in Language.Avro.Types (==) :: Annotation -> Annotation -> Bool # (/=) :: Annotation -> Annotation -> Bool # | |
Show Annotation Source # | |
Defined in Language.Avro.Types showsPrec :: Int -> Annotation -> ShowS # show :: Annotation -> String # showList :: [Annotation] -> ShowS # |
Newtype for the namespace of methods and protocols.
Whole definition of protocol.
N.B. It is possible to create a Haskell value (of Schema
type) that is
not a valid Avro schema by violating one of the above or one of the
conditions called out in validateSchema
.
Null | |
Boolean | |
Int | |
Long | |
Float | |
Double | |
Bytes | |
String | |
Array | |
Map | |
NamedType TypeName | |
Record | |
Enum | |
Union | |
Fixed | |
|
Instances
Orphan instances
ShowErrorComponent Char Source # | |
showErrorComponent :: Char -> String # errorComponentLen :: Char -> Int # |