Facts-0.1: A collection of facts about the real world.

Facts.Geography.Countries

Synopsis

Documentation

data Country Source

The type of "countries" includes sovereign nations and other "areas of geographical interest", as defined by the United Nations, whose definition was adopted by ISO.

Constructors

Afghanistan 
AlandIslands 
Albania 
Algeria 
AmericanSamoa 
Andorra 
Angola 
Anguilla 
Antarctica 
AntiguaAndBarbuda 
Argentina 
Armenia 
Aruba 
Australia 
Austria 
Azerbaijan 
Bahamas 
Bahrain 
Bangladesh 
Barbados 
Belarus 
Belgium 
Belize 
Benin 
Bermuda 
Bhutan 
Bolivia 
BosniaAndHerzegovina 
Botswana 
BouvetIsland 
Brazil 
BritishIndianOceanTerritory 
BruneiDarussalam 
Bulgaria 
BurkinaFaso 
Burundi 
Cambodia 
Cameroon 
Canada 
CapeVerde 
CaymanIslands 
CentralAfricanRepublic 
Chad 
Chile 
China 
ChristmasIsland 
CocosKeelingIslands 
Colombia 
Comoros 
Congo 
DemocraticRepublicOfCongo 
CookIslands 
CostaRica 
CoteDIvoire 
Croatia 
Cuba 
Cyprus 
CzechRepublic 
Denmark 
Djibouti 
Dominica 
DominicanRepublic 
Ecuador 
Egypt 
ElSalvador 
EquatorialGuinea 
Eritrea 
Estonia 
Ethiopia 
FalklandIslands 
FaroeIslands 
Fiji 
Finland 
France 
FrenchGuiana 
FrenchPolynesia 
FrenchSouthernTerritories 
Gabon 
Gambia 
Georgia 
Germany 
Ghana 
Gibraltar 
Greece 
Greenland 
Grenada 
Guadeloupe 
Guam 
Guatemala 
Guernsey 
Guinea 
GuineaBissau 
Guyana 
Haiti 
HeardIslandAndMcDonaldIslands 
HolySee 
Honduras 
HongKong 
Hungary 
Iceland 
India 
Indonesia 
Iran 
Iraq 
Ireland 
IsleOfMan 
Israel 
Italy 
Jamaica 
Japan 
Jersey 
Jordan 
Kazakhstan 
Kenya 
Kiribati 
NorthKorea 
SouthKorea 
Kuwait 
Kyrgyzstan 
Laos 
Latvia 
Lebanon 
Lesotho 
Liberia 
Libya 
Liechtenstein 
Lithuania 
Luxembourg 
Macao 
Macedonia 
Madagascar 
Malawi 
Malaysia 
Maldives 
Mali 
Malta 
MarshallIslands 
Martinique 
Mauritania 
Mauritius 
Mayotte 
Mexico 
Micronesia 
Moldova 
Monaco 
Mongolia 
Montenegro 
Montserrat 
Morocco 
Mozambique 
Myanmar 
Namibia 
Nauru 
Nepal 
Netherlands 
NetherlandsAntilles 
NewCaledonia 
NewZealand 
Nicaragua 
Niger 
Nigeria 
Niue 
NorfolkIsland 
NorthernMarianaIslands 
Norway 
Oman 
Pakistan 
Palau 
Palestinine 
Panama 
PapuaNewGuinea 
Paraguay 
Peru 
Philippines 
Pitcairn 
Poland 
Portugal 
PuertoRico 
Qatar 
Reunion 
Romania 
RussianFederation 
Rwanda 
SaintBarthelemy 
SaintHelenaAscensionAndTristanDaCunha 
SaintKittsAndNevis 
SaintLucia 
SaintMartin 
SaintPierreAndMiquelon 
SaintVincentAndTheGrenadines 
Samoa 
SanMarino 
SaoTomeAndPrincipe 
SaudiArabia 
Senegal 
Serbia 
Seychelles 
SierraLeone 
Singapore 
Slovakia 
Slovenia 
SolomonIslands 
Somalia 
SouthAfrica 
SouthGeorgiaAndtheSouthSandwichIslands 
Spain 
SriLanka 
Sudan 
Suriname 
SvalbardAndJanMayen 
Swaziland 
Sweden 
Switzerland 
Syria 
Taiwan 
Tajikistan 
Tanzania 
Thailand 
TimorLeste 
Togo 
Tokelau 
Tonga 
TrinidadAndTobago 
Tunisia 
Turkey 
Turkmenistan 
TurksAndCaicosIslands 
Tuvalu 
Uganda 
Ukraine 
UnitedArabEmirates 
UnitedKingdom 
UnitedStates 
UnitedStatesMinorOutlyingIslands 
Uruguay 
Uzbekistan 
Vanuatu 
Venezuela 
VietNam 
BritishVirginIslands 
USVirginIslands 
WallisAndFutuna 
WesternSahara 
Yemen 
Zambia 
Zimbabwe 

data ISOAlpha2Code Source

Constructors

AF 
AX 
AL 
DZ 
AS 
AD 
AO 
AI 
AQ 
AG 
AR 
AM 
AW 
AU 
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unused codes. This constructor does not verify that its input is a valid ISO-3166-1 country code, it merely constructs a

shortEnglishCountryName :: Country -> UNShortNameSource

shortEnglishCountryName maps a Country to an ISO-3166-1 "short name". By the international standard, these names are taken from the "United Nations Terminology Bulletin Country Names", and "Country and Region Codes for Statistical Use" of the UN Statistics Division.

formalEnglishCountryName :: Country -> UNFormalNameSource

formalEnglishCountryName maps a Country to an ISO-3166-1 "formal name". By the international standard, these names are taken from the "United Nations Terminology Bulletin Country Names", and "Country and Region Codes for Statistical Use" of the UN Statistics Division.

isoAlpha2Code_for_country :: Country -> ISOAlpha2CodeSource

Maps a Country to its ISO-3166-1 2-character code.

isoAlpha3Code_for_country :: Country -> ISOAlpha3CodeSource

Maps a Country to its ISO-3166-1 3-character code.

country_for_isoAlpha2Code :: ISOAlpha2Code -> CountrySource

Maps an ISO-3166-1 2-character code to a Country.

country_for_isoAlpha3Code :: ISOAlpha3Code -> CountrySource

Maps an ISO-3166-1 3-character code to a Country.

isoNumericCode_for_country :: Country -> ISONumericCodeSource

Maps a Country to its ISO-3166-1 numeric code.

country_for_valid_isoNumericCode :: ISONumericCode -> CountrySource

country_for_valid_isoNumericCode maps a valid ISONumericCode to a Country. Unfortunately, this is a partial function. Use country_for_isoNumericCode instead, unless you can guarantee that the ISONumericCode supplied to the query is valid.

country_for_isoNumericCode :: ISONumericCode -> Maybe CountrySource

The ISO Numeric Code space is not fully packed. Many codes are "reserved" or otherwise unused. country_for_isoNumericCode takes an ISONumericCode and possibly returns a matching Country.