Chadtech/elm-us-state-abbreviations/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Elm US State Abbreviations

A simple Elm package for US State abbreviations.


import UsStates exposing (Abbreviation(..))
import UsStates

fromState : String -> Maybe Abbreviation
toState : Abbreviation -> String

UsState.fromState "   arizona" == Just AZ -- True
UsState.toState AZ == "arizona"           -- True