Safe Haskell | None |
---|---|
Language | Haskell2010 |
DomainCore.Model
Description
High-level model of schema.
Documentation
Declaration of a type.
Instances
Definition of a type.
Constructors
SumTypeDef [(Text, [Type])] | Sum. A list of pairs of names of its members (which will be mapped to constructors) and types which will populate the according constructors. |
ProductTypeDef [(Text, Type)] | Product. Think of it as a record. Carries a list of associations of field names with types. |
Instances
Generic TypeDef Source # | |||||
Defined in DomainCore.Model Associated Types
| |||||
Show TypeDef Source # | |||||
Eq TypeDef Source # | |||||
Ord TypeDef Source # | |||||
Lift TypeDef Source # | |||||
type Rep TypeDef Source # | |||||
Defined in DomainCore.Model type Rep TypeDef = D1 ('MetaData "TypeDef" "DomainCore.Model" "domain-core-0.1.0.4-5lD5FAOSZYHDzmVgFhc563" 'False) (C1 ('MetaCons "SumTypeDef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(Text, [Type])])) :+: C1 ('MetaCons "ProductTypeDef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(Text, Type)]))) |
Type.
Constructors
TupleType [Type] | Fully applied tuple of the listed types. |
AppType (NonEmpty Type) | List of type applications. |
ListType Type | List type with the type of its element. |
RefType Text | Possibly qualified reference to another type. |
Instances
Generic Type Source # | |||||
Defined in DomainCore.Model Associated Types
| |||||
Show Type Source # | |||||
Eq Type Source # | |||||
Ord Type Source # | |||||
Lift Type Source # | |||||
type Rep Type Source # | |||||
Defined in DomainCore.Model type Rep Type = D1 ('MetaData "Type" "DomainCore.Model" "domain-core-0.1.0.4-5lD5FAOSZYHDzmVgFhc563" 'False) ((C1 ('MetaCons "TupleType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Type])) :+: C1 ('MetaCons "AppType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Type)))) :+: (C1 ('MetaCons "ListType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Type)) :+: C1 ('MetaCons "RefType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |