Safe Haskell | None |
---|---|
Language | Haskell2010 |
Look at the source code of this module.
Documentation
type Example = '[DRecord "person" '[FieldDef "firstName" (TPrimitive Text), FieldDef "lastName" (TPrimitive Text), FieldDef "age" (TOption (TPrimitive Int64)), FieldDef "gender" (TOption (TSchematic "gender")), FieldDef "address" (TSchematic "address")], DEnum "gender" '[ChoiceDef "male", ChoiceDef "female", ChoiceDef "nb"], DRecord "address" '[FieldDef "postcode" (TPrimitive Text), FieldDef "country" (TPrimitive Text)]] Source #
type ExampleFromFile = '[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 Int64)), FieldDef "gender" (TOption (TSchematic "gender")), FieldDef "address" (TSchematic "address")]] Source #