libphonenumber: Parsing, formatting, and validating international phone numbers

[ data, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Last Documentation]

  • Data
    • PhoneNumber
      • Data.PhoneNumber.Number
      • Data.PhoneNumber.Util

Downloads

Maintainer's Corner

Package maintainers

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]