Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Enum ISO639_1 | |
Eq ISO639_1 | |
Ord ISO639_1 | |
Defined in Data.LanguageCodes | |
Read ISO639_1 | |
Show ISO639_1 | |
languageToText :: ISO639_1 -> Text Source #
languageP :: Parsec Void Text ISO639_1 Source #
BCP-47 language parser
This only implements the ISO 639 portion of the grammar.
@
language = 2*3ALPHA ; shortest ISO 639 code
["-" extlang] ; sometimes followed by
; extended language subtags
/ 4ALPHA ; or reserved for future use
/ 5*8ALPHA ; or registered language subtag
@