Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PrivateUse = PrivateUse Text
- privateUseFromText :: Text -> Either Text (Set PrivateUse)
- privateUseToText :: PrivateUse -> Text
- privateUseP :: Parsec Void Text (Set PrivateUse)
Documentation
newtype PrivateUse Source #
Private Use subtags
Private use subtags are used to indicate distinctions in language that are important in a given context by private agreement.
Instances
Eq PrivateUse Source # | |
Defined in Data.BCP47.Internal.PrivateUse (==) :: PrivateUse -> PrivateUse -> Bool # (/=) :: PrivateUse -> PrivateUse -> Bool # | |
Ord PrivateUse Source # | |
Defined in Data.BCP47.Internal.PrivateUse compare :: PrivateUse -> PrivateUse -> Ordering # (<) :: PrivateUse -> PrivateUse -> Bool # (<=) :: PrivateUse -> PrivateUse -> Bool # (>) :: PrivateUse -> PrivateUse -> Bool # (>=) :: PrivateUse -> PrivateUse -> Bool # max :: PrivateUse -> PrivateUse -> PrivateUse # min :: PrivateUse -> PrivateUse -> PrivateUse # | |
Show PrivateUse Source # | |
Defined in Data.BCP47.Internal.PrivateUse showsPrec :: Int -> PrivateUse -> ShowS # show :: PrivateUse -> String # showList :: [PrivateUse] -> ShowS # | |
Arbitrary PrivateUse Source # | |
Defined in Data.BCP47.Internal.PrivateUse arbitrary :: Gen PrivateUse # shrink :: PrivateUse -> [PrivateUse] # |
privateUseFromText :: Text -> Either Text (Set PrivateUse) Source #
Parse a PrivateUse
subtag from Text
privateUseToText :: PrivateUse -> Text Source #
privateUseP :: Parsec Void Text (Set PrivateUse) Source #
BCP-47 private use parser
@
privateuse = "x" 1*("-" (1*8alphanum))
@