Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype LanguageExtension Source #
Extended language subtags
These are used to identify certain specially selected languages that, for various historical and compatibility reasons, are closely identified with or tagged using an existing primary language subtag.
Instances
Eq LanguageExtension Source # | |
Defined in Data.BCP47.Internal.LanguageExtension (==) :: LanguageExtension -> LanguageExtension -> Bool # (/=) :: LanguageExtension -> LanguageExtension -> Bool # | |
Ord LanguageExtension Source # | |
Defined in Data.BCP47.Internal.LanguageExtension compare :: LanguageExtension -> LanguageExtension -> Ordering # (<) :: LanguageExtension -> LanguageExtension -> Bool # (<=) :: LanguageExtension -> LanguageExtension -> Bool # (>) :: LanguageExtension -> LanguageExtension -> Bool # (>=) :: LanguageExtension -> LanguageExtension -> Bool # max :: LanguageExtension -> LanguageExtension -> LanguageExtension # min :: LanguageExtension -> LanguageExtension -> LanguageExtension # | |
Show LanguageExtension Source # | |
Defined in Data.BCP47.Internal.LanguageExtension showsPrec :: Int -> LanguageExtension -> ShowS # show :: LanguageExtension -> String # showList :: [LanguageExtension] -> ShowS # | |
Arbitrary LanguageExtension Source # | |
Defined in Data.BCP47.Internal.LanguageExtension |
languageExtensionFromText :: Text -> Either Text LanguageExtension Source #
Parse a LanguageExtension
subtag from Text
languageExtensionP :: Parsec Void Text LanguageExtension Source #
BCP-47 language extension parser
This only implements the ISO 639 portion of the ISO.
@
extlang = 3ALPHA ; selected ISO 639 codes
*2("-" 3ALPHA) ; permanently reserved
@