libphonenumber: Parsing, formatting, and validating international phone numbers
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.
Downloads
- libphonenumber-0.1.4.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.1.4.0 |
|---|---|
| Dependencies | base (>=4.12 && <4.23), bytestring (>=0.10.8 && <0.13), containers (>=0.6.0 && <0.9), deepseq (>=1.4.4 && <1.6), system-cxx-std-lib, transformers (>=0.5.5 && <0.7) [details] |
| Tested with | ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.3, ghc ==9.12.2, ghc ==9.14.1 |
| License | MIT |
| Copyright | 2023-2025 Typeable |
| Author | Typeable |
| Maintainer | mniip@typeable.io |
| Uploaded | by mniip at 2026-01-30T12:42:48Z |
| Category | Data |
| Home page | https://github.com/typeable/libphonenumber/ |
| Source repo | head: git clone https://github.com/typeable/libphonenumber/ |
| Distributions | |
| Downloads | 543 total (25 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs not available [build log] All reported builds failed as of 2026-01-30 [all 2 reports] |