| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.API.API.Gen
Description
This module contains datatypes generated from the DSL description of the api-tools API; they thus correspond to the types in Data.API.Types.
Documentation
newtype RegularExpression Source #
Constructors
| RegularExpression | |
Fields | |
Instances
Instances
| Eq IntRange Source # | |
| Show IntRange Source # | |
| Arbitrary IntRange Source # | |
| ToJSON IntRange Source # | |
Defined in Data.API.API.Gen | |
| FromJSON IntRange Source # | |
| NFData IntRange Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy IntRange Source # | |
| Serialise IntRange Source # | |
| Example IntRange Source # | |
| FromJSONWithErrs IntRange Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs IntRange Source # | |
Instances
| Eq UTCRange Source # | |
| Show UTCRange Source # | |
| Arbitrary UTCRange Source # | |
| ToJSON UTCRange Source # | |
Defined in Data.API.API.Gen | |
| FromJSON UTCRange Source # | |
| NFData UTCRange Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy UTCRange Source # | |
| Serialise UTCRange Source # | |
| Example UTCRange Source # | |
| FromJSONWithErrs UTCRange Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs UTCRange Source # | |
Constructors
| FT_string !RegularExpression | |
| FT_integer !IntRange | |
| FT_utc !UTCRange |
Instances
| Eq Filter Source # | |
| Show Filter Source # | |
| Arbitrary Filter Source # | |
| ToJSON Filter Source # | |
Defined in Data.API.API.Gen | |
| FromJSON Filter Source # | |
| NFData Filter Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy Filter Source # | |
| Serialise Filter Source # | |
| Example Filter Source # | |
| FromJSONWithErrs Filter Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs Filter Source # | |
data Conversion Source #
Constructors
| Conversion | |
Fields
| |
Instances
Instances
| Eq TypeRef Source # | |
| Ord TypeRef Source # | |
| Show TypeRef Source # | |
| IsString TypeRef Source # | |
Defined in Data.API.API.Gen Methods fromString :: String -> TypeRef # | |
| Arbitrary TypeRef Source # | |
| ToJSON TypeRef Source # | |
Defined in Data.API.API.Gen | |
| FromJSON TypeRef Source # | |
| NFData TypeRef Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy TypeRef Source # | |
| Serialise TypeRef Source # | |
| Example TypeRef Source # | |
| FromJSONWithErrs TypeRef Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs TypeRef Source # | |
Constructors
| BT_string | |
| BT_binary | |
| BT_boolean | |
| BT_integer | |
| BT_utc |
Instances
| Bounded BasicType Source # | |
| Enum BasicType Source # | |
Defined in Data.API.API.Gen Methods succ :: BasicType -> BasicType # pred :: BasicType -> BasicType # fromEnum :: BasicType -> Int # enumFrom :: BasicType -> [BasicType] # enumFromThen :: BasicType -> BasicType -> [BasicType] # enumFromTo :: BasicType -> BasicType -> [BasicType] # enumFromThenTo :: BasicType -> BasicType -> BasicType -> [BasicType] # | |
| Eq BasicType Source # | |
| Ord BasicType Source # | |
| Show BasicType Source # | |
| Arbitrary BasicType Source # | |
| ToJSON BasicType Source # | |
Defined in Data.API.API.Gen | |
| FromJSON BasicType Source # | |
| NFData BasicType Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy BasicType Source # | |
| Serialise BasicType Source # | |
| Example BasicType Source # | |
| FromJSONWithErrs BasicType Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs BasicType Source # | |
Instances
| Eq APIType Source # | |
| Show APIType Source # | |
| Arbitrary APIType Source # | |
| ToJSON APIType Source # | |
Defined in Data.API.API.Gen | |
| FromJSON APIType Source # | |
| NFData APIType Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy APIType Source # | |
| Serialise APIType Source # | |
| Example APIType Source # | |
| FromJSONWithErrs APIType Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs APIType Source # | |
data SpecNewtype Source #
Constructors
| SpecNewtype | |
Fields
| |
Instances
data DefaultValue Source #
Constructors
| DV_list !Int | |
| DV_maybe !Int | |
| DV_string !Text | |
| DV_boolean !Bool | |
| DV_integer !Int | |
| DV_utc !UTCTime |
Instances
Constructors
| Field | |
Fields
| |
Instances
| Eq Field Source # | |
| Show Field Source # | |
| Arbitrary Field Source # | |
| ToJSON Field Source # | |
Defined in Data.API.API.Gen | |
| FromJSON Field Source # | |
| NFData Field Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy Field Source # | |
| Serialise Field Source # | |
| Example Field Source # | |
| FromJSONWithErrs Field Source # | |
Defined in Data.API.API.Gen Methods | |
Constructors
| SP_newtype !SpecNewtype | |
| SP_record ![Field] | |
| SP_union ![Field] | |
| SP_enum ![Text] | |
| SP_synonym !APIType |
Instances
| Eq Spec Source # | |
| Show Spec Source # | |
| Arbitrary Spec Source # | |
| ToJSON Spec Source # | |
Defined in Data.API.API.Gen | |
| FromJSON Spec Source # | |
| NFData Spec Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy Spec Source # | |
| Serialise Spec Source # | |
| Example Spec Source # | |
| FromJSONWithErrs Spec Source # | |
Defined in Data.API.API.Gen Methods | |
Constructors
| APINode | |
Fields
| |
Instances
| Eq APINode Source # | |
| Show APINode Source # | |
| Arbitrary APINode Source # | |
| ToJSON APINode Source # | |
Defined in Data.API.API.Gen | |
| FromJSON APINode Source # | |
| NFData APINode Source # | |
Defined in Data.API.API.Gen | |
| SafeCopy APINode Source # | |
| Serialise APINode Source # | |
| Example APINode Source # | |
| FromJSONWithErrs APINode Source # | |
Defined in Data.API.API.Gen Methods parseJSONWithErrs :: Value -> ParserWithErrs APINode Source # | |
apiAPITestsJSONToCBOR :: [(String, Property)] Source #
apiAPITestsCBORToJSON :: [(String, Property)] Source #
apiAPITestsCBOR :: [(String, Property)] Source #
apiAPITestsJSON :: [(String, Property)] Source #
fd_default :: Lens' Field (Maybe DefaultValue) Source #
an_convert :: Lens' APINode (Maybe Conversion) Source #
_text_BasicType :: BasicType -> Text Source #