Skip to content

Commit b6bb838

Browse files
taimoorzaeemsteve-chavez
authored andcommitted
chore: remove unused haskell dependencies
Signed-off-by: Taimoor Zaeem <[email protected]>
1 parent 893e006 commit b6bb838

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

postgrest.cabal

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ library
102102
, auto-update >= 0.1.4 && < 0.3
103103
, base64-bytestring >= 1 && < 1.3
104104
, bytestring >= 0.10.8 && < 0.13
105-
, cache >= 0.1.3 && < 0.2.0
106105
, case-insensitive >= 1.2 && < 1.3
107106
, cassava >= 0.4.5 && < 0.6
108-
, clock >= 0.8.3 && < 0.9.0
109107
, configurator-pg >= 0.2.11 && < 0.3
110108
, containers >= 0.5.7 && < 0.7
111109
, cookie >= 0.4.2 && < 0.6
@@ -118,11 +116,9 @@ library
118116
, hasql-notifications >= 0.2.2.2 && < 0.2.3
119117
, hasql-pool >= 1.0.1 && < 1.1
120118
, hasql-transaction >= 1.0.1 && < 1.2
121-
, heredoc >= 0.2 && < 0.3
122119
, http-client >= 0.7.19 && < 0.8
123120
, http-types >= 0.12.2 && < 0.13
124121
, insert-ordered-containers >= 0.2.2 && < 0.3
125-
, iproute >= 1.7.0 && < 1.8
126122
, jose-jwt >= 0.9.6 && < 0.11
127123
, lens >= 4.14 && < 5.4
128124
, lens-aeson >= 1.0.1 && < 1.3
@@ -132,8 +128,6 @@ library
132128
, network-uri >= 2.6.1 && < 2.8
133129
, optparse-applicative >= 0.13 && < 0.19
134130
, parsec >= 3.1.11 && < 3.2
135-
-- Technically unused, can be removed after updating to hasql >= 1.7
136-
, postgresql-libpq >= 0.10
137131
, prometheus-client >= 1.1.1 && < 1.2.0
138132
, protolude >= 0.3.1 && < 0.4
139133
, regex-tdfa >= 1.2.2 && < 1.4
@@ -151,11 +145,6 @@ library
151145
, wai >= 3.2.1 && < 3.3
152146
, wai-cors >= 0.2.5 && < 0.3
153147
, wai-extra >= 3.1.8 && < 3.2
154-
-- We already depend on wai-logger >= 2.3.7 indirectly via wai-extra,
155-
-- but we want to depend on 2.4.0 which fixes 'unknownSocket' log output
156-
-- for unix sockets; this is tested in test/io/test_io.py. See
157-
-- https://github.com/kazu-yamamoto/logger/commit/3a71ca70afdbb93d4ecf0083eeba1fbbbcab3fc3
158-
, wai-logger >= 2.4.0
159148
, warp >= 3.3.19 && < 3.5
160149
, stm >= 2.5 && < 3
161150
, stm-hamt >= 1.2 && < 2
@@ -166,7 +155,7 @@ library
166155
-- -optP-Wno-nonportable-include-path
167156
-- prevents build failures on case-insensitive filesystems (macos),
168157
-- see https://github.com/commercialhaskell/stack/issues/3918
169-
ghc-options: -Werror -Wall -fwarn-identities
158+
ghc-options: -Werror -Wall -fwarn-identities -Wunused-packages
170159
-fno-spec-constr -optP-Wno-nonportable-include-path
171160

172161
if flag(dev)
@@ -187,11 +176,10 @@ executable postgrest
187176
hs-source-dirs: main
188177
main-is: Main.hs
189178
build-depends: base >= 4.9 && < 4.20
190-
, containers >= 0.5.7 && < 0.7
191179
, postgrest
192180
, protolude >= 0.3.1 && < 0.4
193181
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -I0 -qg"
194-
-O2 -Werror -Wall -fwarn-identities
182+
-O2 -Werror -Wall -fwarn-identities -Wunused-packages
195183
-fno-spec-constr -optP-Wno-nonportable-include-path
196184

197185
if flag(dev)
@@ -291,7 +279,7 @@ test-suite spec
291279
, transformers-base >= 0.4.4 && < 0.5
292280
, wai >= 3.2.1 && < 3.3
293281
, wai-extra >= 3.0.19 && < 3.2
294-
ghc-options: -threaded -O0 -Werror -Wall -fwarn-identities
282+
ghc-options: -threaded -O0 -Werror -Wall -fwarn-identities -Wunused-packages
295283
-fno-spec-constr -optP-Wno-nonportable-include-path
296284
-fno-warn-missing-signatures
297285
-fwrite-ide-info

stack.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ extra-deps:
1313
- fuzzyset-0.2.4
1414
- hasql-pool-1.0.1
1515
- jose-jwt-0.10.0
16-
- postgresql-libpq-0.10.1.0
1716
- streaming-commons-0.2.3.1

stack.yaml.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ packages:
3232
size: 1231
3333
original:
3434
hackage: jose-jwt-0.10.0
35-
- completed:
36-
hackage: postgresql-libpq-0.10.1.0@sha256:6b580c9d5068e78eecc13e655b2885c8e79cdacfca513c5d1e5a6b9dc61d9758,3166
37-
pantry-tree:
38-
sha256: ae81e7628a8f3d1ef33ace71fa0845c073c003ca7f1150cc9d9ba1e55fc84236
39-
size: 1096
40-
original:
41-
hackage: postgresql-libpq-0.10.1.0
4235
- completed:
4336
hackage: streaming-commons-0.2.3.1@sha256:ed7999fea9e912b1211ea93d7e20a7998bf4753166370c94048885650f303bf0,4841
4437
pantry-tree:

0 commit comments

Comments
 (0)