Safe Haskell | None |
---|---|
Language | Haskell2010 |
Look at the source code of this module.
Documentation
Instances
Instances
Eq Address Source # | |
Show Address Source # | |
Generic Address Source # | |
ToJSON Address Source # | |
Defined in Mu.Schema.Examples | |
FromJSON Address Source # | |
FromSchema Identity ExampleSchema "address" Address Source # | |
Defined in Mu.Schema.Examples fromSchema :: Term Identity ExampleSchema (ExampleSchema :/: "address") -> Address Source # | |
ToSchema Identity ExampleSchema "address" Address Source # | |
Defined in Mu.Schema.Examples toSchema :: Address -> Term Identity ExampleSchema (ExampleSchema :/: "address") Source # | |
type Rep Address Source # | |
Defined in Mu.Schema.Examples type Rep Address = D1 (MetaData "Address" "Mu.Schema.Examples" "mu-schema-0.1.0.0-inplace" False) (C1 (MetaCons "Address" PrefixI True) (S1 (MetaSel (Just "postcode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "country") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
type GenderFieldMapping = '["Male" :-> "male", "Female" :-> "female", "NonBinary" :-> "nb"] Source #
Instances
Eq Gender Source # | |
Show Gender Source # | |
Generic Gender Source # | |
ToJSON Gender Source # | |
Defined in Mu.Schema.Examples | |
FromJSON Gender Source # | |
FromSchema f ExampleSchema "gender" Gender Source # | |
Defined in Mu.Schema.Examples fromSchema :: Term f ExampleSchema (ExampleSchema :/: "gender") -> Gender Source # | |
ToSchema f ExampleSchema "gender" Gender Source # | |
Defined in Mu.Schema.Examples toSchema :: Gender -> Term f ExampleSchema (ExampleSchema :/: "gender") Source # | |
type Rep Gender Source # | |
Defined in Mu.Schema.Examples |
type ExampleSchema = '[DEnum "gender" '[ChoiceDef "male", ChoiceDef "female", ChoiceDef "nb"], DRecord "address" '[FieldDef "postcode" (TPrimitive Text), FieldDef "country" (TPrimitive Text)], DRecord "person" '[FieldDef "firstName" (TPrimitive Text), FieldDef "lastName" (TPrimitive Text), FieldDef "age" (TOption (TPrimitive Int)), FieldDef "gender" (TOption (TSchematic "gender")), FieldDef "address" (TSchematic "address")]] Source #
Instances
Eq (GenderMsg f) Source # | |
Ord (GenderMsg f) Source # | |
Defined in Mu.Schema.Examples | |
Show (GenderMsg f) Source # | |
Generic (GenderMsg f) Source # | |
type Rep (GenderMsg f) Source # | |
Defined in Mu.Schema.Examples type Rep (GenderMsg f) = D1 (MetaData "GenderMsg" "Mu.Schema.Examples" "mu-schema-0.1.0.0-inplace" False) (C1 (MetaCons "GenderMsgMale" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "GenderMsgFemale" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GenderMsgNb" PrefixI False) (U1 :: Type -> Type))) |
data AddressMsg f Source #
AddressMsg | |
|
Instances
Generic (AddressMsg f) Source # | |
Defined in Mu.Schema.Examples type Rep (AddressMsg f) :: Type -> Type # from :: AddressMsg f -> Rep (AddressMsg f) x # to :: Rep (AddressMsg f) x -> AddressMsg f # | |
type Rep (AddressMsg f) Source # | |
Defined in Mu.Schema.Examples type Rep (AddressMsg f) = D1 (MetaData "AddressMsg" "Mu.Schema.Examples" "mu-schema-0.1.0.0-inplace" False) (C1 (MetaCons "AddressMsg" PrefixI True) (S1 (MetaSel (Just "addressMsgPostcode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f Text)) :*: S1 (MetaSel (Just "addressMsgCountry") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f Text)))) |
PersonMsg | |
|
Instances
Generic (PersonMsg f) Source # | |
type Rep (PersonMsg f) Source # | |
Defined in Mu.Schema.Examples type Rep (PersonMsg f) = D1 (MetaData "PersonMsg" "Mu.Schema.Examples" "mu-schema-0.1.0.0-inplace" False) (C1 (MetaCons "PersonMsg" PrefixI True) ((S1 (MetaSel (Just "personMsgFirstName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f Text)) :*: S1 (MetaSel (Just "personMsgLastName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f Text))) :*: (S1 (MetaSel (Just "personMsgAge") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f (Maybe Int))) :*: (S1 (MetaSel (Just "personMsgGender") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f (Maybe (GenderMsg f)))) :*: S1 (MetaSel (Just "personMsgAddress") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f (AddressMsg f))))))) |
type ExampleSchema2 = '[DEnum "gender" '[ChoiceDef "Male", ChoiceDef "Female", ChoiceDef "NonBinary"], DRecord "address" '[FieldDef "postcode" (TPrimitive Text), FieldDef "country" (TPrimitive Text)], DRecord "person" '[FieldDef "firstName" (TPrimitive Text), FieldDef "lastName" (TPrimitive Text), FieldDef "age" (TOption (TPrimitive Int)), FieldDef "gender" (TOption (TSchematic "gender")), FieldDef "address" (TSchematic "address")]] Source #
type ExampleRegistry = '[2 :-> ExampleSchema2, 1 :-> ExampleSchema] Source #