--
-- Copyright © 2016 Christian Marie <[email protected]>
--
-- 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
forked from christian-marie/phone-numbers
-
Notifications
You must be signed in to change notification settings - Fork 0
Incomplete bindings to libphonenumber for Haskell
License
factisresearch/phone-numbers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Incomplete bindings to libphonenumber for Haskell
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Haskell 72.9%
- C++ 16.5%
- C 10.6%