Skip to content

Commit 3d6f34f

Browse files
committed
Simplify conditional build-depends
1 parent 4cd94bf commit 3d6f34f

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

hnix.cabal

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ library
509509
, http-client-tls >= 0.3.5 && < 0.4
510510
, http-types >= 0.12.2 && < 0.13
511511
, interpolate >= 0.2.0 && < 0.3
512+
, lens-family >=1.2.2
513+
, lens-family-core >=1.2.2
512514
, lens-family-th >= 0.5.0 && < 0.6
513515
, logict >= 0.6.0 && < 0.7 || >= 0.7.0.2 && < 0.8
514516
, megaparsec >=7.0 && <7.1
@@ -540,9 +542,6 @@ library
540542
, xml >= 1.3.14 && < 1.4
541543
if flag(optimize)
542544
ghc-options: -fexpose-all-unfoldings -fspecialise-aggressively -O2
543-
if os(linux) && impl(ghc >= 8.2) && impl(ghc < 8.3)
544-
build-depends:
545-
compact
546545
if !impl(ghcjs)
547546
build-depends:
548547
base16-bytestring >= 0.1.1 && < 0.2
@@ -551,15 +550,7 @@ library
551550
, cryptohash-sha256 >= 0.11.101 && < 0.12
552551
, cryptohash-sha512 >= 0.11.100 && < 0.12
553552
, serialise >= 0.2.1 && < 0.3
554-
if impl(ghc < 8.1)
555-
build-depends:
556-
lens-family ==1.2.1
557-
, lens-family-core ==1.2.1
558-
else
559-
build-depends:
560-
lens-family >=1.2.2
561-
, lens-family-core >=1.2.2
562-
-- if impl(ghc < 8.4.0) && !flag(profiling)
553+
-- if !flag(profiling)
563554
-- build-depends:
564555
-- ghc-datasize
565556
if impl(ghcjs)
@@ -609,9 +600,6 @@ executable hnix
609600
, unordered-containers
610601
if flag(optimize)
611602
ghc-options: -fexpose-all-unfoldings -fspecialise-aggressively -O2
612-
if os(linux) && impl(ghc >= 8.2) && impl(ghc < 8.3)
613-
build-depends:
614-
compact
615603
if !impl(ghcjs)
616604
build-depends:
617605
base16-bytestring
@@ -678,9 +666,6 @@ test-suite hnix-tests
678666
, unordered-containers >=0.2.9 && <0.3
679667
if flag(optimize)
680668
ghc-options: -fexpose-all-unfoldings -fspecialise-aggressively -O2
681-
if os(linux) && impl(ghc >= 8.2) && impl(ghc < 8.3)
682-
build-depends:
683-
compact
684669
if !impl(ghcjs)
685670
build-depends:
686671
base16-bytestring
@@ -724,9 +709,6 @@ benchmark hnix-benchmarks
724709
, unordered-containers >=0.2.9 && <0.3
725710
if flag(optimize)
726711
ghc-options: -fexpose-all-unfoldings -fspecialise-aggressively -O2
727-
if os(linux) && impl(ghc >= 8.2) && impl(ghc < 8.3)
728-
build-depends:
729-
compact
730712
if !impl(ghcjs)
731713
build-depends:
732714
base16-bytestring

0 commit comments

Comments
 (0)