Haskell bindings to the libphonenumber library

Latest on Hackage:0.1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed and maintained by Christian Marie

phone-numbers - Parse phone numbers with Google's libphonenumber

Travis Status

-- Copyright © 2016 Christian Marie <>
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.

{-# LANGUAGE OverloadedStrings #-}

import Data.PhoneNumber
import Control.Monad
import Data.Monoid
import qualified Data.ByteString.Char8 as S

main :: IO ()
main = forever $ do
    l <- S.getLine

    S.putStrLn "Number:"
    print $ parsePhoneNumber l "AU"
    print (refType <$> parsePhoneNumberRef l "AU")
    S.putStrLn $ "Characters keypad normalised: " <> convertAlphaCharacters l


0.1.1 - 2017-08-01

Merge #7 by enolan: Add protobuf C library as a dependency Merge #6 by enolan: Add c2hs to build-tools in .cabal file

0.1.0 - 2017-01-19

Merge #3 by jberryman: Expose validation functions IsValidNumber and IsPossibleNumber

Depends on 2 packages:
Used by 1 package:
comments powered byDisqus