data-standards-0.1.0.2: A collection of standards representable by simple data types.

Safe HaskellSafe
LanguageHaskell98

Data.Standards.ISO.Country.Primary.Alpha2

Description

  • 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

Documentation

data Alpha2 Source #

The official, recommended codes for countries, translated into a type-safe representation. Unless otherwise specified, all codes are Official.

Constructors

AC

ExceptionalReservation: Ascension Island

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

TransitionalReservation: Netherlands Antilles

AO

Angola

AP

Warning: Not an official ISO 3166-1 code

NotInUse: African Regional Industrial Property Organization

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

TransitionalReservation: Burma

BV

Bouvet Island

BW

Botswana

BX

Warning: Not an official ISO 3166-1 code

NotInUse: Benelux Trademarks and Design Offices

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

ExceptionalReservation: Clipperton Island

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

TransitionalReservation: Serbia and Montenegro; previously Czechoslovakia

CT

Deprecated: Use new code KI or ISO 3166-3 code CTKI

Withdrawn: Canton and Enderbury Islands (the)

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

Withdrawn: German Democratic Republic (the)

DE

Germany

DG

ExceptionalReservation: Diego Garcia

DJ

Djibouti

DK

Denmark

DM

Dominica

DO

Dominican Republic (the)

DY

Deprecated: Use official code BJ

IndeterminateReservation: Benin (road vehicles); previously Dahomey

DZ

Algeria

EA

ExceptionalReservation: Ceuta & Melilla

EC

Ecuador

EE

Estonia

EF

Warning: Not an official ISO 3166-1 code

NotInUse: European Community Patent Convention

EM

Warning: Not an official ISO 3166-1 code

NotInUse: European Trademark Office

EP

Warning: Not an official ISO 3166-1 code

NotInUse: European Patent Organization

EV

Warning: Not an official ISO 3166-1 code

NotInUse: Eurasian Patent Organization

EW

Deprecated: Use official code EE

IndeterminateReservation: Estonia (road vehicles)

EG

Egypt

EH

Western Sahara

ER

Eritrea

ES

Spain

ET

Ethiopia

EU

ExceptionalReservation: European Union (the)

EZ

ExceptionalReservation: Eurozone (the)

FI

Finland

FJ

Fiji

FK

Falkland Islands (the) [Malvinas]

FL

Deprecated: Use official code LI

IndeterminateReservation: Liechtenstein (road vehicles)

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

Withdrawn: French Southern and Antarctic Territories (the)

FR

France

FX

ExceptionalReservation: France, Metropolitan

GA

Gabon

GB

United Kingdom of Great Britain and Northern Ireland (the)

GC

Warning: Not an official ISO 3166-1 code

NotInUse: Patent Office of the Cooperation Council for the Arab States of the Gulf

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

Withdrawn: Upper Volta

IB

Warning: Not an official ISO 3166-1 code

NotInUse: World Intellectual Property Organization, International Bureau

IC

ExceptionalReservation: Canary Islands (the)

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

IndeterminateReservation: Jamaica (road vehicles)

JE

Jersey

JM

Jamaica

JO

Jordan

JP

Japan

JT

Deprecated: Use new code UM or ISO 3166-3 code JTUM

Withdrawn: Johnston Island

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

IndeterminateReservation: Lybia Fezzan (road vehicles)

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

Withdrawn: Midway Islands (the)

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

Withdrawn: New Hebrides

NI

Nicaragua

NL

Netherlands (the)

NO

Norway

NP

Nepal

NQ

Deprecated: Use new code AQ or ISO 3166-3 code NQAQ

Withdrawn: Dronning Maud Land

NR

Nauru

NT

Deprecated: Divided between IQ and SA, or use ISO 3166-3 code NTHH

TransitionalReservation: Saudi Arabian-Iraqi neutral zone (the)

NU

Niue

NZ

New Zealand

OA

Warning: Not an official ISO 3166-1 code

NotInUse: African Intellectual Property Organization

OM

Oman

PA

Panama

PC

Deprecated: Divided into FM, MH, MP and PW, or use ISO 3166-3 code PCHH

Withdrawn: Pacific Islands (Trust Territory of the)

PE

Peru

PF

French Polynesia

PG

Papua New Guinea

PH

Philippines (the)

PI

Deprecated: Use official code PH

IndeterminateReservation: Philippines (road vehicles)

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

Withdrawn: United States Miscellaneous Pacific Islands (the)

PW

Palau

PY

Paraguay

PZ

Deprecated: Use new code PA or ISO 3166-3 code PZPA

Withdrawn: Panama Canal Zone (the)

QA

Qatar

RA

Deprecated: Use official code AR

IndeterminateReservation: Argentina (road vehicles)

RB

Deprecated: Use official code BO or BW, respectively

IndeterminateReservation: Bolivia & Botswana (road vehicles)

RC

Deprecated: Use official code CN

IndeterminateReservation: China (road vehicles)

RE

Réunion

RH

Deprecated: Use official code HT

IndeterminateReservation: Haiti (road vehicles); previously Southern Rhodesia

RI

Deprecated: Use official code ID

IndeterminateReservation: Indonesia (road vehicles)

RM

Deprecated: Use official code MG

IndeterminateReservation: Madagascar (road vehicles)

RN

Deprecated: Use official code NE

IndeterminateReservation: Niger (road vehicles)

RO

Romania

RP

Deprecated: Use official code PH

IndeterminateReservation: Philippines (road vehicles)

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

IndeterminateReservation: Finland

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

ExceptionalReservation: USSR (the)

SV

El Salvador

SX

Sint Maarten (Dutch part)

SY

Syrian Arab Republic

SZ

Eswatini

TA

ExceptionalReservation: Tristan da Cunha

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

TransitionalReservation: East Timor

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

ExceptionalReservation: United Kingdom (the)

UM

United States Minor Outlying Islands (the)

UN

ExceptionalReservation: United Nations (the)

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

Withdrawn: Viet Nam (Democratic Republic of)

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

IndeterminateReservation: Grenada (road vehicles)

WK

Deprecated: Use new code UM or ISO 3166-3 code WKUM

Withdrawn: Wake Island

WL

Deprecated: Use official code LC

IndeterminateReservation: Saint Lucia (road vehicles)

WO

Warning: Not an official ISO 3166-1 code

NotInUse: World Intellectual Property Organization

WS

Samoa

WV

Deprecated: Use official code VC

IndeterminateReservation: Saint Vincent (road vehicles)

YD

Deprecated: Use new code YE or ISO 3166-3 code YDYE

Withdrawn: Yemen (Democratic)

YE

Yemen

YT

Mayotte

YU

Deprecated: Use ISO 3166-3 code YUCS

TransitionalReservation: Yugoslavia

YV

Deprecated: Use official code VE

IndeterminateReservation: Venezuela (road vehicles)

ZA

South Africa

ZM

Zambia

ZR

Deprecated: Use new code CD or ISO 3166-3 code ZRCD

TransitionalReservation: Zaire

ZW

Zimbabwe

Instances
Bounded Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Enum Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Eq Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Methods

(==) :: Alpha2 -> Alpha2 -> Bool #

(/=) :: Alpha2 -> Alpha2 -> Bool #

Ord Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Read Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Show Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Hashable Alpha2 Source # 
Instance details

Defined in Data.Standards.ISO.Country.Primary.Alpha2

Methods

hashWithSalt :: Int -> Alpha2 -> Int #

hash :: Alpha2 -> Int #

data Status Source #

Categories within the standard describing how much warning is given if a code were to change or be replaced.

Constructors

Official

The code is active, and would only be replaced after a period as a TransitionalReservation.

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 IndeterminateReservation.

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 Numeric) it may be reused at any point.

codeStatus :: Alpha2 -> Status Source #

The stability of any particular country code.