Safe Haskell | None |
---|---|
Language | Haskell2010 |
- lookup :: PhoneNumber -> CountryCodeAbbr -> Maybe Phone
- validate :: PhoneNumber -> CountryCodeAbbr -> Bool
- type CountryCodeAbbr = String
- type PhoneNumber = String
- data Phone = Phone {
- number :: String
- code :: String
- countryAbbr :: String
- numberType :: String
Documentation
lookup :: PhoneNumber -> CountryCodeAbbr -> Maybe Phone Source #
Phone number must not include country code. Leading zeroes are allowed
validate :: PhoneNumber -> CountryCodeAbbr -> Bool Source #
Phone number must not include country code. Leading zeroes are allowed
type CountryCodeAbbr = String Source #
type PhoneNumber = String #