Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Lang = Lang {
- langLanguage :: Text
- langScript :: Maybe Text
- langRegion :: Maybe Text
- langVariants :: [Text]
- langExtensions :: [(Text, [(Text, Text)])]
- langPrivateUse :: [Text]
- parseLang :: Text -> Either String Lang
- renderLang :: Lang -> Text
- lookupLang :: Lang -> [(Lang, a)] -> Maybe (Lang, a)
Documentation
Represents a BCP 47 language tag (https://tools.ietf.org/html/bcp47).
Lang | |
|