Here are the abbreviations for every US State, as a union type, and two functions to convert to state names as strings.
Get the states name from the abbreviation
UsState.toState AZ == "arizona"Get the states abbreviation from its name
UsState.toState "Arizona" == Just AZ
UsState.toState "Arizona " == Just AZ
UsState.toState "arizona" == Just AZ
UsState.toState "puerto rico" == Nothing
Every US State abbreviation.