Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Subdivision
- encodeAlpha :: Subdivision -> Text
- encodeAlphaShort :: Subdivision -> ShortText
- encodeEnglish :: Subdivision -> Text
- encodeEnglishShort :: Subdivision -> ShortText
- category :: Subdivision -> Text
- decodeAlpha :: Text -> Maybe Subdivision
- decodeEnglish :: Text -> Maybe Subdivision
- decodeEnglishUtf8Bytes :: Bytes -> Maybe Subdivision
Documentation
data Subdivision Source #
Instances
Accessors
encodeAlpha :: Subdivision -> Text Source #
encodeEnglish :: Subdivision -> Text Source #
category :: Subdivision -> Text Source #
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.