Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides data pertaining to Phone number patterns of different countries & territories
- data PhoneNumberMetadata = PhoneNumberMetadata {
- territories :: [Territory]
- data PhoneNumberType
- = FixedLine
- | Mobile
- | Pager
- | TollFree
- | PremiumRate
- | SharedCost
- | PersonalNumber
- | VOIP
- | UAN
- | Voicemail
- type NumberPattern = String
- type PhoneNumber = String
- type SourceUrl = String
- data Territory = Territory {
- abbreviation :: String
- countryCode :: String
- mainCountryForCode :: Maybe Bool
- leadingDigits :: Maybe String
- preferredInternationalPrefix :: Maybe String
- internationalPrefix :: Maybe String
- nationalPrefix :: Maybe String
- nationalPrefixForParsing :: Maybe String
- nationalPrefixTransformRule :: Maybe String
- preferredExtensionPrefix :: Maybe String
- nationalPrefixFormattingRule :: Maybe String
- nationalPrefixOptionalWhenFormatting :: Maybe Bool
- leadingZeroPossible :: Maybe Bool
- carrierCodeFormattingRule :: Maybe String
- mobileNumberPortableRegion :: Maybe Bool
- references :: [SourceUrl]
- availableFormats :: Maybe [NumberFormat]
- generalDescription :: Maybe PhoneNumberPatterns
- noInternationalDialling :: Maybe PhoneNumberPatterns
- areaCodeOptional :: Maybe PhoneNumberPatterns
- fixedLine :: Maybe PhoneNumberPatterns
- mobile :: Maybe PhoneNumberPatterns
- pager :: Maybe PhoneNumberPatterns
- tollFree :: Maybe PhoneNumberPatterns
- premiumRate :: Maybe PhoneNumberPatterns
- sharedCost :: Maybe PhoneNumberPatterns
- personalNumber :: Maybe PhoneNumberPatterns
- voip :: Maybe PhoneNumberPatterns
- uan :: Maybe PhoneNumberPatterns
- voicemail :: Maybe PhoneNumberPatterns
- data NumberFormat = NumberFormat {}
- data PhoneNumberPatterns = PhoneNumberPatterns {}
- phoneNumberMetadata :: PhoneNumberMetadata
Documentation
data PhoneNumberMetadata Source #
data PhoneNumberType Source #
type NumberPattern = String Source #
type PhoneNumber = String Source #
Describes phone-number patterns and rules for one country or territory.