packages feed

state-codes 0.1.1 → 0.1.2

raw patch · 4 files changed

+9/−6 lines, 4 files

Files

README.md view
@@ -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).
src/Data/StateCodes.hs view
@@ -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(..)
src/Data/StateCodes/ISO31662US.hs view
@@ -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 @@                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
state-codes.cabal view
@@ -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