| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MechanicalTurk.Types.Locale
Description
Documentation
The Locale data structure represents a geographical region or location.
See: newLocale smart constructor.
Constructors
| Locale' | |
Fields
| |
Instances
| FromJSON Locale Source # | |
| ToJSON Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
| Generic Locale Source # | |
| Read Locale Source # | |
| Show Locale Source # | |
| NFData Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
| Eq Locale Source # | |
| Hashable Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
| type Rep Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale type Rep Locale = D1 ('MetaData "Locale" "Amazonka.MechanicalTurk.Types.Locale" "amazonka-mechanicalturk-2.0-7Thix2UjvlJINPIH68shk3" 'False) (C1 ('MetaCons "Locale'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subdivision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) | |
Create a value of Locale with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subdivision:Locale', locale_subdivision - The state or subdivision of the locale. A valid ISO 3166-2 subdivision
code. For example, the code WA refers to the state of Washington.
$sel:country:Locale', locale_country - The country of the locale. Must be a valid ISO 3166 country code. For
example, the code US refers to the United States of America.