Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A model for PDL (Pegasus Data Language) schemas. Based on the specification at: | https://linkedin.github.io/rest.li/pdl_schema
Synopsis
- data Annotations = Annotations {}
- _Annotations :: Name
- _Annotations_doc :: FieldName
- _Annotations_deprecated :: FieldName
- data EnumField = EnumField {}
- _EnumField :: Name
- _EnumField_name :: FieldName
- _EnumField_annotations :: FieldName
- newtype EnumFieldName = EnumFieldName {}
- _EnumFieldName :: Name
- data EnumSchema = EnumSchema {}
- _EnumSchema :: Name
- _EnumSchema_fields :: FieldName
- newtype FieldName = FieldName {}
- _FieldName :: Name
- data NamedSchema = NamedSchema {}
- _NamedSchema :: Name
- _NamedSchema_qualifiedName :: FieldName
- _NamedSchema_type :: FieldName
- _NamedSchema_annotations :: FieldName
- data NamedSchema_Type
- _NamedSchema_Type :: Name
- _NamedSchema_Type_record :: FieldName
- _NamedSchema_Type_enum :: FieldName
- _NamedSchema_Type_typeref :: FieldName
- newtype Name = Name {}
- _Name :: Name
- newtype Namespace = Namespace {}
- _Namespace :: Name
- newtype Package = Package {}
- _Package :: Name
- data PrimitiveType
- _PrimitiveType :: Name
- _PrimitiveType_boolean :: FieldName
- _PrimitiveType_bytes :: FieldName
- _PrimitiveType_double :: FieldName
- _PrimitiveType_float :: FieldName
- _PrimitiveType_int :: FieldName
- _PrimitiveType_long :: FieldName
- _PrimitiveType_string :: FieldName
- newtype PropertyKey = PropertyKey {}
- _PropertyKey :: Name
- data Property = Property {}
- _Property :: Name
- _Property_key :: FieldName
- _Property_value :: FieldName
- data QualifiedName = QualifiedName {}
- _QualifiedName :: Name
- _QualifiedName_name :: FieldName
- _QualifiedName_namespace :: FieldName
- data RecordField = RecordField {}
- _RecordField :: Name
- _RecordField_name :: FieldName
- _RecordField_value :: FieldName
- _RecordField_optional :: FieldName
- _RecordField_default :: FieldName
- _RecordField_annotations :: FieldName
- data RecordSchema = RecordSchema {}
- _RecordSchema :: Name
- _RecordSchema_fields :: FieldName
- _RecordSchema_includes :: FieldName
- data Schema
- _Schema :: Name
- _Schema_array :: FieldName
- _Schema_fixed :: FieldName
- _Schema_inline :: FieldName
- _Schema_map :: FieldName
- _Schema_named :: FieldName
- _Schema_null :: FieldName
- _Schema_primitive :: FieldName
- _Schema_union :: FieldName
- data SchemaFile = SchemaFile {}
- _SchemaFile :: Name
- _SchemaFile_namespace :: FieldName
- _SchemaFile_package :: FieldName
- _SchemaFile_imports :: FieldName
- _SchemaFile_schemas :: FieldName
- data UnionMember = UnionMember {}
- _UnionMember :: Name
- _UnionMember_alias :: FieldName
- _UnionMember_value :: FieldName
- _UnionMember_annotations :: FieldName
- newtype UnionSchema = UnionSchema {
- unUnionSchema :: [UnionMember]
- _UnionSchema :: Name
Documentation
data Annotations Source #
Annotations which can be applied to record fields, aliased union members, enum symbols, or named schemas
Instances
Read Annotations Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS Annotations # readList :: ReadS [Annotations] # readPrec :: ReadPrec Annotations # readListPrec :: ReadPrec [Annotations] # | |
Show Annotations Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> Annotations -> ShowS # show :: Annotations -> String # showList :: [Annotations] -> ShowS # | |
Eq Annotations Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: Annotations -> Annotations -> Bool # (/=) :: Annotations -> Annotations -> Bool # | |
Ord Annotations Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: Annotations -> Annotations -> Ordering # (<) :: Annotations -> Annotations -> Bool # (<=) :: Annotations -> Annotations -> Bool # (>) :: Annotations -> Annotations -> Bool # (>=) :: Annotations -> Annotations -> Bool # max :: Annotations -> Annotations -> Annotations # min :: Annotations -> Annotations -> Annotations # |
_Annotations :: Name Source #
_EnumField :: Name Source #
newtype EnumFieldName Source #
Instances
Read EnumFieldName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS EnumFieldName # readList :: ReadS [EnumFieldName] # | |
Show EnumFieldName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> EnumFieldName -> ShowS # show :: EnumFieldName -> String # showList :: [EnumFieldName] -> ShowS # | |
Eq EnumFieldName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: EnumFieldName -> EnumFieldName -> Bool # (/=) :: EnumFieldName -> EnumFieldName -> Bool # | |
Ord EnumFieldName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: EnumFieldName -> EnumFieldName -> Ordering # (<) :: EnumFieldName -> EnumFieldName -> Bool # (<=) :: EnumFieldName -> EnumFieldName -> Bool # (>) :: EnumFieldName -> EnumFieldName -> Bool # (>=) :: EnumFieldName -> EnumFieldName -> Bool # max :: EnumFieldName -> EnumFieldName -> EnumFieldName # min :: EnumFieldName -> EnumFieldName -> EnumFieldName # |
data EnumSchema Source #
Instances
Read EnumSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS EnumSchema # readList :: ReadS [EnumSchema] # readPrec :: ReadPrec EnumSchema # readListPrec :: ReadPrec [EnumSchema] # | |
Show EnumSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> EnumSchema -> ShowS # show :: EnumSchema -> String # showList :: [EnumSchema] -> ShowS # | |
Eq EnumSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: EnumSchema -> EnumSchema -> Bool # (/=) :: EnumSchema -> EnumSchema -> Bool # | |
Ord EnumSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: EnumSchema -> EnumSchema -> Ordering # (<) :: EnumSchema -> EnumSchema -> Bool # (<=) :: EnumSchema -> EnumSchema -> Bool # (>) :: EnumSchema -> EnumSchema -> Bool # (>=) :: EnumSchema -> EnumSchema -> Bool # max :: EnumSchema -> EnumSchema -> EnumSchema # min :: EnumSchema -> EnumSchema -> EnumSchema # |
_EnumSchema :: Name Source #
_FieldName :: Name Source #
data NamedSchema Source #
Instances
Read NamedSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS NamedSchema # readList :: ReadS [NamedSchema] # readPrec :: ReadPrec NamedSchema # readListPrec :: ReadPrec [NamedSchema] # | |
Show NamedSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> NamedSchema -> ShowS # show :: NamedSchema -> String # showList :: [NamedSchema] -> ShowS # | |
Eq NamedSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: NamedSchema -> NamedSchema -> Bool # (/=) :: NamedSchema -> NamedSchema -> Bool # | |
Ord NamedSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: NamedSchema -> NamedSchema -> Ordering # (<) :: NamedSchema -> NamedSchema -> Bool # (<=) :: NamedSchema -> NamedSchema -> Bool # (>) :: NamedSchema -> NamedSchema -> Bool # (>=) :: NamedSchema -> NamedSchema -> Bool # max :: NamedSchema -> NamedSchema -> NamedSchema # min :: NamedSchema -> NamedSchema -> NamedSchema # |
_NamedSchema :: Name Source #
data NamedSchema_Type Source #
Instances
Read NamedSchema_Type Source # | |
Defined in Hydra.Ext.Pegasus.Pdl | |
Show NamedSchema_Type Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> NamedSchema_Type -> ShowS # show :: NamedSchema_Type -> String # showList :: [NamedSchema_Type] -> ShowS # | |
Eq NamedSchema_Type Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: NamedSchema_Type -> NamedSchema_Type -> Bool # (/=) :: NamedSchema_Type -> NamedSchema_Type -> Bool # | |
Ord NamedSchema_Type Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: NamedSchema_Type -> NamedSchema_Type -> Ordering # (<) :: NamedSchema_Type -> NamedSchema_Type -> Bool # (<=) :: NamedSchema_Type -> NamedSchema_Type -> Bool # (>) :: NamedSchema_Type -> NamedSchema_Type -> Bool # (>=) :: NamedSchema_Type -> NamedSchema_Type -> Bool # max :: NamedSchema_Type -> NamedSchema_Type -> NamedSchema_Type # min :: NamedSchema_Type -> NamedSchema_Type -> NamedSchema_Type # |
_Namespace :: Name Source #
data PrimitiveType Source #
PrimitiveTypeBoolean | |
PrimitiveTypeBytes | |
PrimitiveTypeDouble | |
PrimitiveTypeFloat | |
PrimitiveTypeInt | |
PrimitiveTypeLong | |
PrimitiveTypeString |
Instances
Read PrimitiveType Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS PrimitiveType # readList :: ReadS [PrimitiveType] # | |
Show PrimitiveType Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> PrimitiveType -> ShowS # show :: PrimitiveType -> String # showList :: [PrimitiveType] -> ShowS # | |
Eq PrimitiveType Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: PrimitiveType -> PrimitiveType -> Bool # (/=) :: PrimitiveType -> PrimitiveType -> Bool # | |
Ord PrimitiveType Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: PrimitiveType -> PrimitiveType -> Ordering # (<) :: PrimitiveType -> PrimitiveType -> Bool # (<=) :: PrimitiveType -> PrimitiveType -> Bool # (>) :: PrimitiveType -> PrimitiveType -> Bool # (>=) :: PrimitiveType -> PrimitiveType -> Bool # max :: PrimitiveType -> PrimitiveType -> PrimitiveType # min :: PrimitiveType -> PrimitiveType -> PrimitiveType # |
newtype PropertyKey Source #
Instances
Read PropertyKey Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS PropertyKey # readList :: ReadS [PropertyKey] # readPrec :: ReadPrec PropertyKey # readListPrec :: ReadPrec [PropertyKey] # | |
Show PropertyKey Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> PropertyKey -> ShowS # show :: PropertyKey -> String # showList :: [PropertyKey] -> ShowS # | |
Eq PropertyKey Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: PropertyKey -> PropertyKey -> Bool # (/=) :: PropertyKey -> PropertyKey -> Bool # | |
Ord PropertyKey Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: PropertyKey -> PropertyKey -> Ordering # (<) :: PropertyKey -> PropertyKey -> Bool # (<=) :: PropertyKey -> PropertyKey -> Bool # (>) :: PropertyKey -> PropertyKey -> Bool # (>=) :: PropertyKey -> PropertyKey -> Bool # max :: PropertyKey -> PropertyKey -> PropertyKey # min :: PropertyKey -> PropertyKey -> PropertyKey # |
_PropertyKey :: Name Source #
data QualifiedName Source #
Instances
Read QualifiedName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS QualifiedName # readList :: ReadS [QualifiedName] # | |
Show QualifiedName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> QualifiedName -> ShowS # show :: QualifiedName -> String # showList :: [QualifiedName] -> ShowS # | |
Eq QualifiedName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: QualifiedName -> QualifiedName -> Bool # (/=) :: QualifiedName -> QualifiedName -> Bool # | |
Ord QualifiedName Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: QualifiedName -> QualifiedName -> Ordering # (<) :: QualifiedName -> QualifiedName -> Bool # (<=) :: QualifiedName -> QualifiedName -> Bool # (>) :: QualifiedName -> QualifiedName -> Bool # (>=) :: QualifiedName -> QualifiedName -> Bool # max :: QualifiedName -> QualifiedName -> QualifiedName # min :: QualifiedName -> QualifiedName -> QualifiedName # |
data RecordField Source #
Instances
Read RecordField Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS RecordField # readList :: ReadS [RecordField] # readPrec :: ReadPrec RecordField # readListPrec :: ReadPrec [RecordField] # | |
Show RecordField Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> RecordField -> ShowS # show :: RecordField -> String # showList :: [RecordField] -> ShowS # | |
Eq RecordField Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: RecordField -> RecordField -> Bool # (/=) :: RecordField -> RecordField -> Bool # | |
Ord RecordField Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: RecordField -> RecordField -> Ordering # (<) :: RecordField -> RecordField -> Bool # (<=) :: RecordField -> RecordField -> Bool # (>) :: RecordField -> RecordField -> Bool # (>=) :: RecordField -> RecordField -> Bool # max :: RecordField -> RecordField -> RecordField # min :: RecordField -> RecordField -> RecordField # |
_RecordField :: Name Source #
data RecordSchema Source #
Instances
Read RecordSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS RecordSchema # readList :: ReadS [RecordSchema] # | |
Show RecordSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> RecordSchema -> ShowS # show :: RecordSchema -> String # showList :: [RecordSchema] -> ShowS # | |
Eq RecordSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: RecordSchema -> RecordSchema -> Bool # (/=) :: RecordSchema -> RecordSchema -> Bool # | |
Ord RecordSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: RecordSchema -> RecordSchema -> Ordering # (<) :: RecordSchema -> RecordSchema -> Bool # (<=) :: RecordSchema -> RecordSchema -> Bool # (>) :: RecordSchema -> RecordSchema -> Bool # (>=) :: RecordSchema -> RecordSchema -> Bool # max :: RecordSchema -> RecordSchema -> RecordSchema # min :: RecordSchema -> RecordSchema -> RecordSchema # |
_RecordSchema :: Name Source #
SchemaArray Schema | |
SchemaFixed Int | |
SchemaInline NamedSchema | |
SchemaMap Schema | |
SchemaNamed QualifiedName | |
SchemaNull | |
SchemaPrimitive PrimitiveType | |
SchemaUnion UnionSchema |
data SchemaFile Source #
Instances
Read SchemaFile Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS SchemaFile # readList :: ReadS [SchemaFile] # readPrec :: ReadPrec SchemaFile # readListPrec :: ReadPrec [SchemaFile] # | |
Show SchemaFile Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> SchemaFile -> ShowS # show :: SchemaFile -> String # showList :: [SchemaFile] -> ShowS # | |
Eq SchemaFile Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: SchemaFile -> SchemaFile -> Bool # (/=) :: SchemaFile -> SchemaFile -> Bool # | |
Ord SchemaFile Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: SchemaFile -> SchemaFile -> Ordering # (<) :: SchemaFile -> SchemaFile -> Bool # (<=) :: SchemaFile -> SchemaFile -> Bool # (>) :: SchemaFile -> SchemaFile -> Bool # (>=) :: SchemaFile -> SchemaFile -> Bool # max :: SchemaFile -> SchemaFile -> SchemaFile # min :: SchemaFile -> SchemaFile -> SchemaFile # |
_SchemaFile :: Name Source #
data UnionMember Source #
Instances
Read UnionMember Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS UnionMember # readList :: ReadS [UnionMember] # readPrec :: ReadPrec UnionMember # readListPrec :: ReadPrec [UnionMember] # | |
Show UnionMember Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> UnionMember -> ShowS # show :: UnionMember -> String # showList :: [UnionMember] -> ShowS # | |
Eq UnionMember Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: UnionMember -> UnionMember -> Bool # (/=) :: UnionMember -> UnionMember -> Bool # | |
Ord UnionMember Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: UnionMember -> UnionMember -> Ordering # (<) :: UnionMember -> UnionMember -> Bool # (<=) :: UnionMember -> UnionMember -> Bool # (>) :: UnionMember -> UnionMember -> Bool # (>=) :: UnionMember -> UnionMember -> Bool # max :: UnionMember -> UnionMember -> UnionMember # min :: UnionMember -> UnionMember -> UnionMember # |
_UnionMember :: Name Source #
newtype UnionSchema Source #
Instances
Read UnionSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl readsPrec :: Int -> ReadS UnionSchema # readList :: ReadS [UnionSchema] # readPrec :: ReadPrec UnionSchema # readListPrec :: ReadPrec [UnionSchema] # | |
Show UnionSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl showsPrec :: Int -> UnionSchema -> ShowS # show :: UnionSchema -> String # showList :: [UnionSchema] -> ShowS # | |
Eq UnionSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl (==) :: UnionSchema -> UnionSchema -> Bool # (/=) :: UnionSchema -> UnionSchema -> Bool # | |
Ord UnionSchema Source # | |
Defined in Hydra.Ext.Pegasus.Pdl compare :: UnionSchema -> UnionSchema -> Ordering # (<) :: UnionSchema -> UnionSchema -> Bool # (<=) :: UnionSchema -> UnionSchema -> Bool # (>) :: UnionSchema -> UnionSchema -> Bool # (>=) :: UnionSchema -> UnionSchema -> Bool # max :: UnionSchema -> UnionSchema -> UnionSchema # min :: UnionSchema -> UnionSchema -> UnionSchema # |
_UnionSchema :: Name Source #