-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpg-entity.cabal
183 lines (163 loc) · 4.24 KB
/
pg-entity.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
cabal-version: 3.0
name: pg-entity
synopsis: A pleasant PostgreSQL layer
description:
A PostgreSQL layer to safely expand your SQL queries with a lightweight eDSL.
Read the tutorial at https://hackage.haskell.org/package/pg-entity/src/docs/book/index.html
version: 0.0.5.0
homepage:
https://hackage.haskell.org/package/pg-entity/src/docs/book/index.html
bug-reports: https://github.com/tchoutri/pg-entity/issues
author: Théophile Choutri
maintainer: Théophile Choutri
category: Database
license: MIT
build-type: Simple
tested-with: GHC ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2
extra-source-files:
CHANGELOG.md
LICENSE.md
README.md
extra-doc-files:
./docs/book/*.css
./docs/book/*.html
./docs/book/*.js
./docs/book/css/*.css
./docs/book/favicon.png
./docs/book/favicon.svg
./docs/book/FontAwesome/css/font-awesome.css
./docs/book/FontAwesome/fonts/fontawesome-webfont.woff2
./docs/book/fonts/*.css
./docs/book/fonts/*.woff2
./docs/book/searchindex.json
flag prod
description:
This flag enables features for production usage, like disabling logs
default: False
manual: True
flag book
description: Enable the generation of the book
default: False
manual: True
source-repository head
type: git
location: https://github.com/tchoutri/pg-entity
common common-extensions
default-extensions:
AllowAmbiguousTypes
ConstraintKinds
DataKinds
DeriveAnyClass
DeriveGeneric
DerivingStrategies
DerivingVia
DisambiguateRecordFields
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
InstanceSigs
KindSignatures
MultiParamTypeClasses
NamedFieldPuns
OverloadedLabels
OverloadedStrings
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TypeApplications
TypeOperators
default-language: Haskell2010
common common-ghc-options
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wno-unused-do-bind -Wno-deprecations
-Wpartial-fields -Wredundant-constraints -fhide-source-paths
-funbox-strict-fields -Wunused-packages
common common-rts-options
ghc-options: -rtsopts -threaded -with-rtsopts=-N
library
import: common-extensions
import: common-ghc-options
exposed-modules:
Database.PostgreSQL.Entity
Database.PostgreSQL.Entity.DBT
Database.PostgreSQL.Entity.Internal
Database.PostgreSQL.Entity.Internal.QQ
Database.PostgreSQL.Entity.Internal.Unsafe
Database.PostgreSQL.Entity.Types
hs-source-dirs: src
build-depends:
, base >=4.12 && <5.0
, bytestring ^>=0.12
, colourista ^>=0.1
, parsec ^>=3.1
, pg-transact ^>=0.3
, postgresql-simple ^>=0.7
, resource-pool ^>=0.4
, template-haskell >=2.15.0.0 && <2.22.0.0.0
, text ^>=2.1
, text-display ^>=0.0
, text-manipulate ^>=0.3
, time ^>=1.12
, vector ^>=0.13
if flag(prod)
cpp-options: -DPROD
executable book
import: common-extensions
import: common-ghc-options
import: common-rts-options
main-is: Main.hs
other-modules:
ErrorsGuide
Tutorial
hs-source-dirs: docs/src
if !flag(book)
buildable: False
build-depends:
, base
, directory
, literatex
, mtl
, pg-entity
, pg-transact
, postgresql-simple
, resource-pool
, shake
, text
, time
, uuid
test-suite entity-test
import: common-extensions
import: common-ghc-options
import: common-rts-options
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
BlogPost
EntitySpec
GenericsSpec
Utils
hs-source-dirs: test
build-depends:
, aeson
, base
, bytestring
, containers
, envparse
, hedgehog
, mtl
, optics-core
, pg-entity
, pg-transact
, postgresql-migration ^>=0.2
, postgresql-simple
, resource-pool
, safe-exceptions
, tasty
, tasty-hunit
, text
, time
, uuid
, vector