Skip to content

Commit a18e744

Browse files
committed
fixup! Add network-tests flag
1 parent eabc31d commit a18e744

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

dhall/dhall.cabal

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ Common common
252252
uri-encode < 1.6 ,
253253
vector >= 0.11.0.0 && < 0.13
254254

255-
256255
if flag(with-http)
257256
CPP-Options:
258257
-DWITH_HTTP
@@ -264,17 +263,6 @@ Common common
264263
-DNETWORK_TESTS
265264

266265
GHC-Options: -Wall -Wcompat -Wincomplete-uni-patterns
267-
if !impl(ghcjs)
268-
Build-Depends:
269-
cryptohash-sha256
270-
if flag(with-http)
271-
Build-Depends:
272-
http-types >= 0.7.0 && < 0.13,
273-
http-client >= 0.5.0 && < 0.8
274-
if flag(use-http-client-tls)
275-
Build-Depends:
276-
http-client-tls >= 0.2.0 && < 0.4
277-
278266

279267
Library
280268
Import: common
@@ -286,14 +274,15 @@ Library
286274
ghcjs-xhr
287275
else
288276
Hs-Source-Dirs: ghc-src
289-
290-
Library
291-
Import: common
292-
if impl(ghcjs)
293-
Hs-Source-Dirs: ghcjs-src
294-
else
295-
Hs-Source-Dirs: ghc-src
296-
Hs-Source-Dirs: src
277+
Build-Depends:
278+
cryptohash-sha256
279+
if flag(with-http)
280+
Build-Depends:
281+
http-types >= 0.7.0 && < 0.13,
282+
http-client >= 0.5.0 && < 0.8
283+
if flag(use-http-client-tls)
284+
Build-Depends:
285+
http-client-tls >= 0.2.0 && < 0.4
297286

298287
Other-Extensions:
299288
BangPatterns
@@ -439,8 +428,7 @@ Test-Suite doctest
439428
Main-Is: Main.hs
440429
Build-Depends:
441430
mockery < 0.4 ,
442-
doctest >= 0.7.0 ,
443-
431+
doctest >= 0.7.0
444432
if os(windows)
445433
-- https://github.com/dhall-lang/dhall-haskell/issues/2237
446434
Buildable: False

0 commit comments

Comments
 (0)