summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracamino <>2017-08-26 22:07:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-08-26 22:07:00 (GMT)
commit7a5a74896c627ae1bbf75064d95b288968384610 (patch)
tree0fb1164820e4df9a45ec15f4ac9d692fadde4da9
parent80fa59a40c1b5b3c4bb139c7d9a676e234766a70 (diff)
version 0.1.20.1.2
-rw-r--r--README.md1
-rw-r--r--src/Data/StateCodes.hs3
-rw-r--r--src/Data/StateCodes/ISO31662US.hs9
-rw-r--r--state-codes.cabal2
4 files changed, 9 insertions, 6 deletions
diff --git a/README.md b/README.md
index 13c684e..3f76ee4 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# state-codes
[![Build Status](https://travis-ci.org/acamino/state-codes.svg?branch=master)](https://travis-ci.org/acamino/state-codes)
+[![Hackage version](https://img.shields.io/hackage/v/state-codes.svg)](http://hackage.haskell.org/package/state-codes)
This package provides the ISO 3166-2:US state codes and i18n names.
This work is entirely based on the package [Data.CountryCodes](http://hackage.haskell.org/package/country-codes).
diff --git a/src/Data/StateCodes.hs b/src/Data/StateCodes.hs
index 494603c..3dca491 100644
--- a/src/Data/StateCodes.hs
+++ b/src/Data/StateCodes.hs
@@ -1,4 +1,5 @@
--- | Main entry point.
+-- | This module defines codes for the names of the principal subdivisions for
+-- the United States according to ISO 3166-2:US.
module Data.StateCodes
( StateCode(..)
diff --git a/src/Data/StateCodes/ISO31662US.hs b/src/Data/StateCodes/ISO31662US.hs
index 4e9ab0f..126b151 100644
--- a/src/Data/StateCodes/ISO31662US.hs
+++ b/src/Data/StateCodes/ISO31662US.hs
@@ -1,10 +1,11 @@
--- | This module defines codes for the names of the principal subdivisions for
--- the United States according to ISO 3166-2:US
--- <https://en.wikipedia.org/wiki/ISO_3166-2:US>.
+-- The information used in this module was pulled from the @Wikipedia article
+-- about ISO_3166-2:US@: <https://en.wikipedia.org/wiki/ISO_3166-2:US>.
+{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
+-- Only if version 7.8
{-# LANGUAGE PatternGuards #-}
module Data.StateCodes.ISO31662US
@@ -88,7 +89,7 @@ data StateCode = AL -- ^ Alabama
deriving (Bounded, Eq, Enum, Show, Read, Ord, Typeable)
--- | Maybe get the state code from the text code.
+-- | Maybe get the state code from the text code
fromMText :: Text -> Maybe StateCode
fromMText "AL" = Just AL
diff --git a/state-codes.cabal b/state-codes.cabal
index 2c96f73..1b45dea 100644
--- a/state-codes.cabal
+++ b/state-codes.cabal
@@ -1,5 +1,5 @@
name: state-codes
-version: 0.1.1
+version: 0.1.2
synopsis: ISO 3166-2:US state codes and i18n names
description: This package provides the ISO 3166-2:US state codes and i18n names
homepage: https://github.com/acamino/state-codes#README