Chadtech/elm-us-state-abbreviations - version: 2.0.2

for more information visit the package's GitHub page

Package contains the following modules:

Elm US State Abbreviations

A simple Elm package for US State abbreviations.

import UsStates exposing (Abbreviation(..))

UsStates.fromString : String -> Maybe Abbreviation
UsStates.toString : Abbreviation -> String

UsStates.fromString "   arizona" == Just AZ -- True
UsStates.toString AZ == "arizona"           -- True

UsStates.all == [ AL, AK, AZ, AR, CA, ... ]