-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzoovisitor.cabal
132 lines (116 loc) · 3.7 KB
/
zoovisitor.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
127
128
129
130
131
132
cabal-version: 2.2
name: zoovisitor
version: 0.2.7.0
synopsis:
A haskell binding to Apache Zookeeper C library(mt) using Haskell Z project.
description:
Please see the README on Github at <https://github.com/ZHaskell/zoovisitor#readme>
license: BSD-3-Clause
license-file: LICENSE
copyright: Copyright (c)
author: mu
maintainer: [email protected]
tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8
category: Database
homepage: https://github.com/ZHaskell/zoovisitor
bug-reports: https://github.com/ZHaskell/zoovisitor/issues
build-type: Simple
extra-source-files:
ChangeLog.md
include/hs_zk.h
LICENSE_ZOOKEEPER
README.md
source-repository head
type: git
location: https://github.com/ZHaskell/zoovisitor
-- XXX: Hackage requires 'cabal-version' must be at most 3.0.
-- But the flag 'zoovisitor_enable_asan' use 'hsc2hs-options' requres >= 3.6.
-- flag zoovisitor_enable_asan
-- default: False
-- description:
-- Enable AddressSanitizer. This is only for local debug usage.
-- Also, do not forget to set cabal-version to 3.6 manually.
-- XXX: require cabal-version >= 3.6
-- Tricky options to link static archive, see: https://github.com/haskell/cabal/issues/4677
-- common link-asan
-- if os(osx)
-- ghc-options: "-optl-Wl,-lasan"
--
-- if !os(osx)
-- ghc-options:
-- -pgml g++ "-optl-Wl,--allow-multiple-definition"
-- "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lasan"
-- "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
library
hs-source-dirs: src
exposed-modules:
ZooKeeper
ZooKeeper.Exception
ZooKeeper.Recipe
ZooKeeper.Types
other-modules:
ZooKeeper.Internal.FFI
ZooKeeper.Internal.Types
ZooKeeper.Internal.Utils
ZooKeeper.Recipe.Election
ZooKeeper.Recipe.Lock
ZooKeeper.Recipe.Utils
build-depends:
, base >=4.12 && <5
, bytestring >=0.10.10.0 && <0.13
, exceptions ^>=0.10
, Z-Data >=0.7.2 && <1.5 || ^>=2.0
includes: hs_zk.h
c-sources: cbits/hs_zk.c
include-dirs: include /usr/local/include
build-tool-depends: hsc2hs:hsc2hs
extra-libraries: zookeeper_mt
-- XXX: require cabal-version >= 3.6
-- if flag(zoovisitor_enable_asan)
-- cc-options:
-- -fsanitize=address -fno-omit-frame-pointer -static-libasan
-- hsc2hs-options:
-- "--cflag=-fsanitize=address" "--lflag=-fsanitize=address"
-- "--cflag=-static-libasan" "--lflag=-static-libasan"
default-language: Haskell2010
default-extensions:
BangPatterns
ConstraintKinds
DeriveGeneric
DerivingStrategies
EmptyDataDeriving
ExistentialQuantification
GADTSyntax
GeneralisedNewtypeDeriving
MagicHash
OverloadedStrings
PatternSynonyms
PolyKinds
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TypeApplications
TypeOperators
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
test-suite zoovisitor-test
-- XXX: require cabal-version >= 3.6
-- if flag(zoovisitor_enable_asan)
-- import: link-asan
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
build-depends:
, async ^>=2.2
, base >=4.12 && <5
, hspec ^>=2.11
, uuid ^>=1.3
, Z-Data
, zoovisitor
default-language: Haskell2010
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
-threaded -rtsopts -with-rtsopts=-N