bcp47-0.1.0.0: Language tags as specified by BCP 47

Safe HaskellNone
LanguageHaskell2010

Data.BCP47.Internal.Extension

Synopsis

Documentation

newtype Extension Source #

Extension subtags

Extensions provide a mechanism for extending language tags for use in various applications. They are intended to identify information that is commonly used in association with languages or language tags but that is not part of language identification.

Constructors

Extension Text 

extensionP :: Parsec Void Text Extension Source #

BCP-47 extension parser

@@ extension = singleton 1*("-" (2*8alphanum)) ; Single alphanumerics ; "x" reserved for private use

singleton = DIGIT ; 0 - 9 / %x41-57 ; A - W / %x59-5A ; Y - Z / %x61-77 ; a - w / %x79-7A ; y - z @@