bcp47-0.3.0.0: Language tags as specified by BCP 47
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.BCP47.Internal.Parser

Synopsis

Documentation

complete :: Parsec Void Text a -> Parsec Void Text a Source #

Ensure a subtag extends to the next - or end of input

Used for subtags that can match some prefix of another subtag. For example, a Script or Region can accidentally be parsed from the prefix of a Variant

The alternative would be to use notFollowedBy with knowledge of the legal characters in the next valid subtag.

asciiLetterDigit :: Parsec Void Text Char Source #

Parse a single case-insensitive ASCII letter or digit

asciiLetter :: Parsec Void Text Char Source #

Parse a single case-insensitive ASCII letter

asciiDigit :: Parsec Void Text Char Source #

Parse a single ASCII digit