@hackage / libphonenumber

Parsing, formatting, and validating international phone numbers

Latest0.1.4.0

About

Metadata

  • Last updated , by mniip
  • License MIT
  • Maintained by: mniip@typeable.io

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.3
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5

Readme

This package provides bindings for the C++ version of the libphonenumber library. The bindings currently do not include AsYouTypeFormatter and ShortNumberInfo. The C++ library must be of version >= 8.7.0.

The interface largely resembles that of the original unified C++, Java, and JavaScript version of the library, with some minor changes to make the interface more Haskell-like.

The provided functions are pure, under the assumption that we are the only user of the C++ library, i.e. that no one else has installed a global logger which could observe side-effects from library calls.

The underlying library internally uses UTF-8 encoded byte strings. To avoid decoding overhead where it is unnecessary, and to avoid a dependency on text, we use ByteString throughout the library instead of Data.Text.Text.