-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathhasql.cabal
249 lines (228 loc) · 5.82 KB
/
hasql.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
cabal-version: 3.0
name: hasql
version: 1.9
category: Hasql, Database, PostgreSQL
synopsis: Fast PostgreSQL driver with a flexible mapping API
description:
Root of the \"hasql\" ecosystem.
This library provides connection management, execution of queries and mapping of parameters and results.
Extended functionality such as pooling, transactions and compile-time checking is provided by extension libraries.
For more details and tutorials see <https://github.com/nikita-volkov/hasql the readme>.
The API comes free from all kinds of exceptions.
All error-reporting is explicit and is presented using the 'Either' type.
\"hasql\" requires you to have the "\libpq\" C-library installed to compile.
Starting from version 1.7 of \"hasql\" it requires \"libpq\" of at least version 14.
\"libpq\" comes distributed with PostgreSQL,
so typically all you need is just to install the latest PostgreSQL distro.
Despite the mentioned requirements for \"libpq\" \"hasql\" is compatible
with a wide range of PostgreSQL servers with tests having been conducted starting from
version 8.3.
homepage: https://github.com/nikita-volkov/hasql
bug-reports: https://github.com/nikita-volkov/hasql/issues
author: Nikita Volkov <[email protected]>
maintainer: Nikita Volkov <[email protected]>
copyright: (c) 2014, Nikita Volkov
license: MIT
license-file: LICENSE
extra-source-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: git://github.com/nikita-volkov/hasql.git
common base
default-language: Haskell2010
default-extensions:
ApplicativeDo
Arrows
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingVia
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
LambdaCase
LiberalTypeSynonyms
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
NoImplicitPrelude
NoMonomorphismRestriction
OverloadedStrings
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
StrictData
TupleSections
TypeApplications
TypeFamilies
TypeOperators
common executable
import: base
ghc-options:
-O2
-threaded
-with-rtsopts=-N
-rtsopts
-funbox-strict-fields
common test
import: base
ghc-options:
-threaded
-with-rtsopts=-N
library
import: base
hs-source-dirs: library
exposed-modules:
Hasql.Connection
Hasql.Connection.Setting
Hasql.Connection.Setting.Connection
Hasql.Connection.Setting.Connection.Param
Hasql.Decoders
Hasql.Encoders
Hasql.Pipeline
Hasql.Session
Hasql.Statement
other-modules:
Hasql.Commands
Hasql.Connection.Config
Hasql.Connection.Config.ConnectionString
Hasql.Connection.Config.ConnectionString.Params
Hasql.Connection.Core
Hasql.Decoders.All
Hasql.Decoders.Array
Hasql.Decoders.Composite
Hasql.Decoders.Result
Hasql.Decoders.Results
Hasql.Decoders.Row
Hasql.Decoders.Value
Hasql.Encoders.All
Hasql.Encoders.Array
Hasql.Encoders.Params
Hasql.Encoders.Value
Hasql.Errors
Hasql.IO
Hasql.LibPq14
Hasql.LibPq14.Ffi
Hasql.LibPq14.Mappings
Hasql.Pipeline.Core
Hasql.PostgresTypeInfo
Hasql.Prelude
Hasql.PreparedStatementRegistry
Hasql.Session.Core
build-depends:
aeson >=2 && <3,
attoparsec >=0.10 && <0.15,
base >=4.14 && <5,
bytestring >=0.10 && <0.13,
bytestring-strict-builder >=0.4.5.1 && <0.5,
containers >=0.6 && <0.8,
contravariant >=1.3 && <2,
dlist >=0.8 && <0.9 || >=1 && <2,
hashable >=1.2 && <2,
hashtables >=1.1 && <2,
iproute >=1.7 && <1.8,
mtl >=2 && <3,
postgresql-binary >=0.14 && <0.15,
postgresql-libpq >=0.10.1 && <0.12,
profunctors >=5.1 && <6,
scientific >=0.3 && <0.4,
text >=1 && <3,
text-builder >=0.6.7 && <0.7,
time >=1.9 && <2,
transformers >=0.6 && <0.7,
uuid >=1.3 && <2,
vector >=0.10 && <0.14,
library testing-kit
import: base
visibility: private
hs-source-dirs: testing-kit
exposed-modules:
Hasql.TestingKit.Constants
Hasql.TestingKit.Preludes.Base
Hasql.TestingKit.Statements.BrokenSyntax
Hasql.TestingKit.Statements.GenerateSeries
Hasql.TestingKit.Statements.WrongDecoder
Hasql.TestingKit.TestingDsl
build-depends:
base,
bytestring,
hasql,
transformers,
uuid,
test-suite tasty
import: base
type: exitcode-stdio-1.0
hs-source-dirs: tasty
main-is: Main.hs
other-modules:
Main.Connection
Main.Prelude
Main.Statements
build-depends:
contravariant-extras >=0.3.5.2 && <0.4,
hasql,
hasql:testing-kit,
quickcheck-instances >=0.3.11 && <0.4,
rerebase <2,
tasty >=0.12 && <2,
tasty-hunit >=0.9 && <0.11,
tasty-quickcheck >=0.9 && <0.11,
test-suite threads-test
import: test
type: exitcode-stdio-1.0
hs-source-dirs: threads-test
main-is: Main.hs
other-modules: Main.Statements
build-depends:
hasql,
rerebase,
benchmark benchmarks
import: executable
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Main.hs
build-depends:
criterion >=1.6 && <2,
hasql,
rerebase <2,
test-suite profiling
import: base
type: exitcode-stdio-1.0
hs-source-dirs: profiling
main-is: Main.hs
ghc-options:
-O2
-threaded
-rtsopts
build-depends:
hasql,
rerebase >=1 && <2,
test-suite hspec
import: test
type: exitcode-stdio-1.0
hs-source-dirs: hspec
main-is: Main.hs
other-modules:
Hasql.PipelineSpec
build-tool-depends: hspec-discover:hspec-discover
build-depends:
hasql:testing-kit,
hspec,
rerebase >=1 && <2,