country-0.2.5.0: Country data type and functions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Country.Subdivision

Synopsis

Documentation

data Subdivision Source #

Instances

Instances details
Storable Subdivision Source # 
Instance details

Defined in Country.Subdivision

Bounded Subdivision Source # 
Instance details

Defined in Country.Subdivision

Enum Subdivision Source # 
Instance details

Defined in Country.Subdivision

Show Subdivision Source # 
Instance details

Defined in Country.Subdivision

Eq Subdivision Source # 
Instance details

Defined in Country.Subdivision

Ord Subdivision Source # 
Instance details

Defined in Country.Subdivision

Hashable Subdivision Source # 
Instance details

Defined in Country.Subdivision

Prim Subdivision Source # 
Instance details

Defined in Country.Subdivision

Accessors

Decoding

decodeAlpha :: Text -> Maybe Subdivision Source #

Decode a Subdivision using its ISO subdivision code.

decodeEnglish :: Text -> Maybe Subdivision Source #

Decode a Subdivision using its ISO subdivision English name It's not terribly forgiving, accepting only the official(?) names I found on wiki.