-
Notifications
You must be signed in to change notification settings - Fork 1
/
libphonenumber.cabal
126 lines (115 loc) · 3.84 KB
/
libphonenumber.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
cabal-version: 3.0
name: libphonenumber
version: 0.1.3.0
category: Data
synopsis: Parsing, formatting, and validating international phone
numbers
description:
This package provides bindings for the C++ version of the
<https://github.com/google/libphonenumber 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'.
copyright: 2023 Typeable
author: Typeable
maintainer: [email protected]
homepage: https://github.com/typeable/libphonenumber/
license: MIT
license-file: LICENSE
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.3
, GHC == 9.8.1
build-type: Simple
extra-source-files:
, include/*.h
, test/libphonenumber.supp
source-repository head
type: git
location: https://github.com/typeable/libphonenumber/
library
exposed-modules:
, Data.PhoneNumber.Number
, Data.PhoneNumber.Util
other-modules:
, Data.PhoneNumber.Internal.Common
, Data.PhoneNumber.Internal.Number
, Data.PhoneNumber.Internal.Util
build-depends:
, base >= 4.12 && < 4.20
, bytestring >= 0.10.8 && < 0.13
, containers >= 0.6.0 && < 0.8
, deepseq >= 1.4.4 && < 1.6
, transformers >= 0.5.5 && < 0.7
build-tool-depends: c2hs:c2hs
include-dirs: include
includes:
, c_phonenumber.h
, c_phonenumberutil.h
cxx-sources:
, cxxbits/c_phonenumber.cpp
, cxxbits/c_phonenumberutil.cpp
extra-libraries:
, phonenumber
, protobuf
if impl(ghc >= 9.4)
build-depends: system-cxx-std-lib
else
extra-libraries: stdc++
hs-source-dirs: src
default-language: Haskell2010
default-extensions:
, DeriveAnyClass
, DeriveDataTypeable
, DeriveGeneric
, DerivingStrategies
, GeneralizedNewtypeDeriving
, LambdaCase
, NamedFieldPuns
, OverloadedStrings
, PatternSynonyms
, StandaloneDeriving
, RecordWildCards
, ViewPatterns
if impl(ghc >= 9.2)
default-extensions: NoFieldSelectors
ghc-options: -Wall -Wextra
test-suite spec_test
type: exitcode-stdio-1.0
build-depends:
, base
, bytestring
, containers
, hspec >= 2.10.8 && < 2.12
, libphonenumber
, QuickCheck >= 2.13.1 && < 2.15
main-is: Spec.hs
hs-source-dirs: test
default-language: Haskell2010
ghc-options: -Wall -Wextra
test-suite leak_test
type: exitcode-stdio-1.0
build-depends:
, base
, libphonenumber
, process >= 1.6.5 && < 1.7
main-is: Leak.hs
hs-source-dirs: test
default-language: Haskell2010
ghc-options: -Wall -Wextra