-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | ISO 3166-2:US state codes and i18n names
--   
--   This package provides the ISO 3166-2:US state codes and i18n names
@package state-codes
@version 0.1.3


-- | This module defines codes for the names of the principal subdivisions
--   for the United States according to ISO 3166-2:US.
module Data.StateCodes
data StateCode

-- | Alabama
AL :: StateCode

-- | Alaska
AK :: StateCode

-- | Arizona
AZ :: StateCode

-- | Arkansas
AR :: StateCode

-- | California
CA :: StateCode

-- | Colorado
CO :: StateCode

-- | Connecticut
CT :: StateCode

-- | Delaware
DE :: StateCode

-- | Florida
FL :: StateCode

-- | Georgia
GA :: StateCode

-- | Hawaii
HI :: StateCode

-- | Idaho
ID :: StateCode

-- | Illinois
IL :: StateCode

-- | Indiana
IN :: StateCode

-- | Iowa
IA :: StateCode

-- | Kansas
KS :: StateCode

-- | Kentucky
KY :: StateCode

-- | Louisiana
LA :: StateCode

-- | Maine
ME :: StateCode

-- | Maryland
MD :: StateCode

-- | Massachusetts
MA :: StateCode

-- | Michigan
MI :: StateCode

-- | Minnesota
MN :: StateCode

-- | Mississippi
MS :: StateCode

-- | Missouri
MO :: StateCode

-- | Montana
MT :: StateCode

-- | Nebraska
NE :: StateCode

-- | Nevada
NV :: StateCode

-- | New Hampshire
NH :: StateCode

-- | New Jersey
NJ :: StateCode

-- | New Mexico
NM :: StateCode

-- | New York
NY :: StateCode

-- | North Carolina
NC :: StateCode

-- | North Dakota
ND :: StateCode

-- | Ohio
OH :: StateCode

-- | Oklahoma
OK :: StateCode

-- | Oregon
OR :: StateCode

-- | Pennsylvania
PA :: StateCode

-- | Rhode Island
RI :: StateCode

-- | South Carolina
SC :: StateCode

-- | South Dakota
SD :: StateCode

-- | Tennessee
TN :: StateCode

-- | Texas
TX :: StateCode

-- | Utah
UT :: StateCode

-- | Vermont
VT :: StateCode

-- | Virginia
VA :: StateCode

-- | Washington
WA :: StateCode

-- | West Virginia
WV :: StateCode

-- | Wisconsin
WI :: StateCode

-- | Wyoming
WY :: StateCode

-- | District of Columbia
DC :: StateCode

-- | American Samoa
AS :: StateCode

-- | Guam
GU :: StateCode

-- | Northern Mariana Islands
MP :: StateCode

-- | Puerto Rico
PR :: StateCode

-- | United States Minor Outlying Islands
UM :: StateCode

-- | Virgin Islands, U.S.
VI :: StateCode

-- | List all codes with names
allNames :: [(StateCode, Text)]

-- | List all states with codes. This is ready to be used in a yesod
--   selectField, for example
allStates :: [(Text, StateCode)]

-- | List of states sorted by alphabetical order, with state code this is
--   ready to be used in a yesod selectField, for example
stateList :: [(Text, StateCode)]

-- | List of districts sorted by alphabetical order, with state code this
--   is ready to be used in a yesod selectField, for example
districtList :: [(Text, StateCode)]

-- | List of outlying areas sorted by alphabetical order, with state code
--   this is ready to be used in a yesod selectField, for example
outlyingAreasList :: [(Text, StateCode)]

-- | Maybe get the state code from the state readable name
fromMName :: Text -> Maybe StateCode

-- | Maybe get the state code from the text code
fromMText :: Text -> Maybe StateCode

-- | Get the state code from the state readable name. Errors if the name is
--   unknown
fromName :: Text -> StateCode

-- | Get the state code from the text code. Errors if the code is unknown
fromText :: Text -> StateCode

-- | Get the state readable name
toName :: StateCode -> Text

-- | Get the state code as text
toText :: StateCode -> Text
