@@ -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
0 commit comments