country: Country data type and functions
The country
library provides a data type for dealing with
the set of countries as defined by ISO 3166. The representation
is compact and is well-suited to use with vectors and
primitive arrays. Additionally, this library exports functions
that provide the following encodings and decodings:
ISO Alpha-2 (two-letter country code)
ISO Alpha-3 (three-letter country code)
ISO Numeric (three-digit country code)
The main differences between this library and `iso3166-country-codes` are:
it doesn't use an ADT to represent countries, instead it uses the country's three-digit country code.
it doesn't use
String
for encoding/decodingit provides two-alpha and three-alpha country codes.
it provides
Prim
instances from theprimitive
package to allow types to be used in unboxed vectors/arrays.BSD3 licence instead of LGPL
Please open up an issue on github if there is anything you would like to see added.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- country-0.2.3.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.3.1 |
---|---|
Dependencies | aeson (>=1.2 && <2.2), attoparsec (>=0.13 && <0.15), base (>=4.12 && <5), bytebuild (>=0.3.4 && <0.4), bytehash (>=0.1 && <0.2), byteslice (>=0.2.3 && <0.3), bytestring (>=0.10 && <0.12), contiguous (>=0.6.1), deepseq (>=1.3.0.2 && <1.5), entropy (>=0.4.1.5 && <0.5), hashable (>=1.2 && <1.5), primitive (>=0.6.4 && <0.9), primitive-unlifted (>=0.1.3 && <1.4), scientific (>=0.3 && <0.4), text (>=2.0 && <2.1), text-short (>=0.1.3), unordered-containers (>=0.2 && <0.3) [details] |
License | BSD-3-Clause |
Copyright | 2017 Andrew Martin |
Author | Andrew Martin |
Maintainer | andrew.thaddeus@gmail.com |
Revised | Revision 1 made by chessai at 2023-02-21T21:35:19Z |
Category | Web |
Home page | https://github.com/andrewthad/country#readme |
Source repo | head: git clone https://github.com/andrewthad/country |
Uploaded | by andrewthad at 2022-10-11T18:25:26Z |
Distributions | LTSHaskell:0.2.3, NixOS:0.2.3, Stackage:0.2.3.1 |
Reverse Dependencies | 3 direct, 1 indirect [details] |
Downloads | 6822 total (66 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2022-10-11 [all 1 reports] |