Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- Description : The two-character country codes described by ISO 3166-1.
- Copyright : (c) 2018 Samuel May
- License : MPL-2.0
- Maintainer : ag.eitilt@gmail.com
- Stability : provisional
- Portability : portable
Synopsis
- data Alpha2
- = AC
- | AD
- | AE
- | AF
- | AG
- | AI
- | AL
- | AM
- | AN
- | AO
- | AP
- | AQ
- | AR
- | AS
- | AT
- | AU
- | AW
- | AX
- | AZ
- | BA
- | BB
- | BD
- | BE
- | BF
- | BG
- | BH
- | BI
- | BJ
- | BL
- | BM
- | BN
- | BO
- | BQ
- | BR
- | BS
- | BT
- | BU
- | BV
- | BW
- | BX
- | BY
- | BZ
- | CA
- | CC
- | CD
- | CF
- | CG
- | CH
- | CI
- | CK
- | CL
- | CM
- | CN
- | CO
- | CP
- | CR
- | CS
- | CT
- | CU
- | CV
- | CW
- | CX
- | CY
- | CZ
- | DD
- | DE
- | DG
- | DJ
- | DK
- | DM
- | DO
- | DY
- | DZ
- | EA
- | EC
- | EE
- | EF
- | EM
- | EP
- | EV
- | EW
- | EG
- | EH
- | ER
- | ES
- | ET
- | EU
- | EZ
- | FI
- | FJ
- | FK
- | FL
- | FM
- | FO
- | FQ
- | FR
- | FX
- | GA
- | GB
- | GC
- | GD
- | GE
- | GF
- | GG
- | GH
- | GI
- | GL
- | GM
- | GN
- | GP
- | GQ
- | GR
- | GS
- | GT
- | GU
- | GW
- | GY
- | HK
- | HM
- | HN
- | HR
- | HT
- | HU
- | HV
- | IB
- | IC
- | ID
- | IE
- | IL
- | IM
- | IN
- | IO
- | IQ
- | IR
- | IS
- | IT
- | JA
- | JE
- | JM
- | JO
- | JP
- | JT
- | KE
- | KG
- | KH
- | KI
- | KM
- | KN
- | KP
- | KR
- | KW
- | KY
- | KZ
- | LA
- | LB
- | LC
- | LF
- | LI
- | LK
- | LR
- | LS
- | LT
- | LU
- | LV
- | LY
- | MA
- | MC
- | MD
- | ME
- | MF
- | MG
- | MH
- | MI
- | MK
- | ML
- | MM
- | MN
- | MO
- | MP
- | MQ
- | MR
- | MS
- | MT
- | MU
- | MV
- | MW
- | MX
- | MY
- | MZ
- | NA
- | NC
- | NE
- | NF
- | NG
- | NH
- | NI
- | NL
- | NO
- | NP
- | NQ
- | NR
- | NT
- | NU
- | NZ
- | OA
- | OM
- | PA
- | PC
- | PE
- | PF
- | PG
- | PH
- | PI
- | PK
- | PL
- | PM
- | PN
- | PR
- | PS
- | PT
- | PU
- | PW
- | PY
- | PZ
- | QA
- | RA
- | RB
- | RC
- | RE
- | RH
- | RI
- | RM
- | RN
- | RO
- | RP
- | RS
- | RU
- | RW
- | SA
- | SB
- | SC
- | SD
- | SE
- | SF
- | SG
- | SH
- | SI
- | SJ
- | SK
- | SL
- | SM
- | SN
- | SO
- | SR
- | SS
- | ST
- | SU
- | SV
- | SX
- | SY
- | SZ
- | TA
- | TC
- | TD
- | TF
- | TG
- | TH
- | TJ
- | TK
- | TL
- | TM
- | TN
- | TO
- | TR
- | TP
- | TT
- | TV
- | TW
- | TZ
- | UA
- | UG
- | UK
- | UM
- | UN
- | US
- | UY
- | UZ
- | VA
- | VC
- | VD
- | VE
- | VG
- | VI
- | VN
- | VU
- | WF
- | WG
- | WK
- | WL
- | WO
- | WS
- | WV
- | YD
- | YE
- | YT
- | YU
- | YV
- | ZA
- | ZM
- | ZR
- | ZW
- data Status
- codeStatus :: Alpha2 -> Status
Documentation
The official, recommended codes for countries, translated into a type-safe
representation. Unless otherwise specified, all codes are Official
.
AC |
|
AD | Andorra |
AE | United Arab Emirates (the) |
AF | Afghanistan |
AG | Antigua and Barbuda |
AI | Anguilla; previously French Afar and Issas |
AL | Albania |
AM | Armenia |
AN | Deprecated: Divided into BQ, CW and SX, or use ISO 3166-3 code ANHH
|
AO | Angola |
AP | Warning: Not an official ISO 3166-1 code
|
AQ | Antarctica |
AR | Argentina |
AS | American Samoa |
AT | Austria |
AU | Australia |
AW | Aruba |
AX | Åland Islands |
AZ | Azerbaijan |
BA | Bosnia and Herzegovina |
BB | Barbados |
BD | Bangladesh |
BE | Belgium |
BF | Burkina Faso |
BG | Bulgaria |
BH | Bahrain |
BI | Burundi |
BJ | Benin |
BL | Saint Barthélemy |
BM | Bermuda |
BN | Brunei Darussalam |
BO | Bolivia (Plurinational State of) |
BQ | Bonaire, Sint Eustatius and Saba; previously British Antarctic Territory (the) |
BR | Brazil |
BS | Bahamas (the) |
BT | Bhutan |
BU | Deprecated: Use new code MM or ISO 3166-3 code BUMM
|
BV | Bouvet Island |
BW | Botswana |
BX | Warning: Not an official ISO 3166-1 code
|
BY | Belarus |
BZ | Belize |
CA | Canada |
CC | Cocos (Keeling) Islands (the) |
CD | Congo (the Democratic Republic of the) |
CF | Central African Republic (the) |
CG | Congo (the) |
CH | Switzerland |
CI | Côte d'Ivoire |
CK | Cook Islands (the) |
CL | Chile |
CM | Cameroon |
CN | China |
CO | Colombia |
CP |
|
CR | Costa Rica |
CS | Deprecated: Divided into ME and RS, or use ISO 3166-3 code CSXX; previous usage divided into CZ and SK, or use ISO 3166-3 code CSHH
|
CT | Deprecated: Use new code KI or ISO 3166-3 code CTKI
|
CU | Cuba |
CV | Cabo Verde |
CW | Curaçao |
CX | Christmas Island |
CY | Cyprus |
CZ | Czechia |
DD | Deprecated: Use new code DE or ISO 3166-3 code DDDE
|
DE | Germany |
DG |
|
DJ | Djibouti |
DK | Denmark |
DM | Dominica |
DO | Dominican Republic (the) |
DY | Deprecated: Use official code BJ
|
DZ | Algeria |
EA |
|
EC | Ecuador |
EE | Estonia |
EF | Warning: Not an official ISO 3166-1 code
|
EM | Warning: Not an official ISO 3166-1 code
|
EP | Warning: Not an official ISO 3166-1 code
|
EV | Warning: Not an official ISO 3166-1 code
|
EW | Deprecated: Use official code EE
|
EG | Egypt |
EH | Western Sahara |
ER | Eritrea |
ES | Spain |
ET | Ethiopia |
EU |
|
EZ |
|
FI | Finland |
FJ | Fiji |
FK | Falkland Islands (the) [Malvinas] |
FL | Deprecated: Use official code LI
|
FM | Micronesia (Federated States of) |
FO | Faroe Islands (the) |
FQ | Deprecated: Divided into TF and part of AQ, or use ISO 3166-3 code FQHH
|
FR | France |
FX |
|
GA | Gabon |
GB | United Kingdom of Great Britain and Northern Ireland (the) |
GC | Warning: Not an official ISO 3166-1 code
|
GD | Grenada |
GE | Georgia; previously Gilbert and Ellice Islands (the) |
GF | French Guiana |
GG | Guernsey |
GH | Ghana |
GI | Gibraltar |
GL | Greenland |
GM | Gambia (the) |
GN | Guinea |
GP | Guadeloupe |
GQ | Equatorial Guinea |
GR | Greece |
GS | South Georgia and the South Sandwich Islands |
GT | Guatemala |
GU | Guam |
GW | Guinea-Bissau |
GY | Guyana |
HK | Hong Kong |
HM | Heard Island and McDonald Islands |
HN | Honduras |
HR | Croatia |
HT | Haiti |
HU | Hungary |
HV | Deprecated: Use new code BF or ISO 3166-3 code HVBF
|
IB | Warning: Not an official ISO 3166-1 code
|
IC |
|
ID | Indonesia |
IE | Ireland |
IL | Israel |
IM | Isle of Man |
IN | India |
IO | British Indian Ocean Territory (the) |
IQ | Iraq |
IR | Iran (Islamic Republic of) |
IS | Iceland |
IT | Italy |
JA | Deprecated: Use official code JM
|
JE | Jersey |
JM | Jamaica |
JO | Jordan |
JP | Japan |
JT | Deprecated: Use new code UM or ISO 3166-3 code JTUM
|
KE | Kenya |
KG | Kyrgyzstan |
KH | Cambodia |
KI | Kiribati |
KM | Comoros (the) |
KN | Saint Kitts and Nevis |
KP | Korea (the Democratic People's Republic of) |
KR | Korea (the Republic of) |
KW | Kuwait |
KY | Cayman Islands (the) |
KZ | Kazakhstan |
LA | Lao People's Democratic Republic (the) |
LB | Lebanon |
LC | Saint Lucia |
LF | Deprecated: Use code for entire country LY
|
LI | Liechtenstein |
LK | Sri Lanka |
LR | Liberia |
LS | Lesotho |
LT | Lithuania |
LU | Luxembourg |
LV | Latvia |
LY | Libya |
MA | Morocco |
MC | Monaco |
MD | Moldova (the Republic of) |
ME | Montenegro |
MF | Saint Martin (French part) |
MG | Madagascar |
MH | Marshall Islands (the) |
MI | Deprecated: Use new code UM or ISO 3166-3 code MIUM
|
MK | Macedonia (the former Yugoslav Republic of) |
ML | Mali |
MM | Myanmar |
MN | Mongolia |
MO | Macao |
MP | Northern Mariana Islands (the) |
MQ | Martinique |
MR | Mauritania |
MS | Montserrat |
MT | Malta |
MU | Mauritius |
MV | Maldives |
MW | Malawi |
MX | Mexico |
MY | Malaysia |
MZ | Mozambique |
NA | Namibia |
NC | New Caledonia |
NE | Niger (the) |
NF | Norfolk Island |
NG | Nigeria |
NH | Deprecated: Use new code VU or ISO 3166-3 code NHVU
|
NI | Nicaragua |
NL | Netherlands (the) |
NO | Norway |
NP | Nepal |
NQ | Deprecated: Use new code AQ or ISO 3166-3 code NQAQ
|
NR | Nauru |
NT | Deprecated: Divided between IQ and SA, or use ISO 3166-3 code NTHH
|
NU | Niue |
NZ | New Zealand |
OA | Warning: Not an official ISO 3166-1 code
|
OM | Oman |
PA | Panama |
PC | Deprecated: Divided into FM, MH, MP and PW, or use ISO 3166-3 code PCHH
|
PE | Peru |
PF | French Polynesia |
PG | Papua New Guinea |
PH | Philippines (the) |
PI | Deprecated: Use official code PH
|
PK | Pakistan |
PL | Poland |
PM | Saint Pierre and Miquelon |
PN | Pitcairn |
PR | Puerto Rico |
PS | Palestine, State of |
PT | Portugal |
PU | Deprecated: Use new code UM or ISO 3166-3 code PUUM
|
PW | Palau |
PY | Paraguay |
PZ | Deprecated: Use new code PA or ISO 3166-3 code PZPA
|
QA | Qatar |
RA | Deprecated: Use official code AR
|
RB | Deprecated: Use official code BO or BW, respectively
|
RC | Deprecated: Use official code CN
|
RE | Réunion |
RH | Deprecated: Use official code HT
|
RI | Deprecated: Use official code ID
|
RM | Deprecated: Use official code MG
|
RN | Deprecated: Use official code NE
|
RO | Romania |
RP | Deprecated: Use official code PH
|
RS | Serbia |
RU | Russian Federation (the) |
RW | Rwanda |
SA | Saudi Arabia |
SB | Solomon Islands |
SC | Seychelles |
SD | Sudan (the) |
SE | Sweden |
SF | Deprecated: Use official code FI
|
SG | Singapore |
SH | Saint Helena, Ascension and Tristan da Cunha |
SI | Slovenia |
SJ | Svalbard and Jan Mayen |
SK | Slovakia; previously Sikkim |
SL | Sierra Leone |
SM | San Marino |
SN | Senegal |
SO | Somalia |
SR | Suriname |
SS | South Sudan |
ST | Sao Tome and Principe |
SU |
|
SV | El Salvador |
SX | Sint Maarten (Dutch part) |
SY | Syrian Arab Republic |
SZ | Eswatini |
TA |
|
TC | Turks and Caicos Islands (the) |
TD | Chad |
TF | French Southern Territories (the) |
TG | Togo |
TH | Thailand |
TJ | Tajikistan |
TK | Tokelau |
TL | Timor-Leste |
TM | Turkmenistan |
TN | Tunisia |
TO | Tonga |
TR | Turkey |
TP | Deprecated: Use new code TL or ISO 3166-3 code TPTL
|
TT | Trinidad and Tobago |
TV | Tuvalu |
TW | Taiwan (Province of China) |
TZ | Tanzania, United Republic of |
UA | Ukraine |
UG | Uganda |
UK | Warning: Official country code is GB
|
UM | United States Minor Outlying Islands (the) |
UN |
|
US | United States of America (the) |
UY | Uruguay |
UZ | Uzbekistan |
VA | Holy See (the) |
VC | Saint Vincent and the Grenadines |
VD | Deprecated: Use new code VN or ISO 3166-3 code VDVN
|
VE | Venezuela (Bolivarian Republic of) |
VG | Virgin Islands (British) |
VI | Virgin Islands (U.S.) |
VN | Viet Nam |
VU | Vanuatu |
WF | Wallis and Futuna |
WG | Deprecated: Use official code GD
|
WK | Deprecated: Use new code UM or ISO 3166-3 code WKUM
|
WL | Deprecated: Use official code LC
|
WO | Warning: Not an official ISO 3166-1 code
|
WS | Samoa |
WV | Deprecated: Use official code VC
|
YD | Deprecated: Use new code YE or ISO 3166-3 code YDYE
|
YE | Yemen |
YT | Mayotte |
YU | Deprecated: Use ISO 3166-3 code YUCS
|
YV | Deprecated: Use official code VE
|
ZA | South Africa |
ZM | Zambia |
ZR | Deprecated: Use new code CD or ISO 3166-3 code ZRCD
|
ZW | Zimbabwe |
Categories within the standard describing how much warning is given if a code were to change or be replaced.
Official | The code is active, and would only be replaced after a period as a
|
ExceptionalReservation | The code is reserved and any other use is subject to approval. |
TransitionalReservation | The code has been marked for deletion, but is currently still reserved as implementations remove it or migrate to the replacement. |
IndeterminateReservation | Use of the code is restricted to historic vehicle registrations, but may still be reassigned at any point. |
NotInUse | The code is used by another standard or high-profile organization, and
will not be assigned in ISO 3166. Officially, these are listed as an
|
Withdrawn | The code was previously included in the standard, but the country it
referred to has been reassigned or no longer exists, and so (unless it's
|
codeStatus :: Alpha2 -> Status Source #
The stability of any particular country code.