Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main entry point, exposing all that needs to be
Documentation
AL | |
AK | |
AZ | |
AR | |
CA | |
CO | |
CT | |
DE | |
FL | |
GA | |
HI | |
ID | |
IL | |
IN | |
IA | |
KS | |
KY | |
LA | |
ME | |
MD | |
MA | |
MI | |
MN | |
MS | |
MO | |
MT | |
NE | |
NV | |
NH | |
NJ | |
NM | |
NY | |
NC | |
ND | |
OH | |
OK | |
OR | |
PA | |
RI | |
SC | |
SD | |
TN | |
TX | |
UT | |
VT | |
VA | |
WA | |
WV | |
WI | |
WY | |
DC | |
AS | |
GU | |
MP | |
PR | |
UM | |
VI |
Bounded StateCode Source # | |
Enum StateCode Source # | |
Eq StateCode Source # | |
Ord StateCode Source # | |
Read StateCode Source # | |
Show StateCode Source # | |
ToJSON StateCode Source # | To JSON: as a simple string |
FromJSON StateCode Source # | From JSON: as a simple string |
RenderMessage master StateCode Source # | Show user readable name, in English (ignoring locale for now) |
stateList :: [(Text, StateCode)] Source #
List of names sorted by alphabetical order, with state code this is ready to be used in a yesod selectField, for example
fromName :: Text -> StateCode Source #
Get the StateCode from the user readable name. Errors if the name is unknown