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