-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlibphonenumber.cabal
More file actions
129 lines (118 loc) · 3.91 KB
/
libphonenumber.cabal
File metadata and controls
129 lines (118 loc) · 3.91 KB
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
127
128
129
cabal-version: 3.0
name: libphonenumber
version: 0.1.4.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-2025 Typeable
author: Typeable
maintainer: mniip@typeable.io
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.7
, GHC == 9.8.4
, GHC == 9.10.3
, GHC == 9.12.2
, GHC == 9.14.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.23
, bytestring >= 0.10.8 && < 0.13
, containers >= 0.6.0 && < 0.9
, deepseq >= 1.4.4 && < 1.6
, transformers >= 0.5.5 && < 0.7
build-tool-depends: c2hs:c2hs
pkgconfig-depends: protobuf
include-dirs: include
includes:
, c_phonenumber.h
, c_phonenumberutil.h
cxx-sources:
, cxxbits/c_phonenumber.cpp
, cxxbits/c_phonenumberutil.cpp
extra-libraries:
, phonenumber
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.16
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