Skip to content

Commit 201be99

Browse files
committed
Require Cabal 1.24
1 parent e5987cd commit 201be99

4 files changed

Lines changed: 3 additions & 10 deletions

File tree

src/Stack/Package.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,7 @@ buildOtherSources build =
758758

759759
-- | Get the target's JS sources.
760760
targetJsSources :: BuildInfo -> [FilePath]
761-
#if MIN_VERSION_Cabal(1, 22, 0)
762761
targetJsSources = jsSources
763-
#else
764-
targetJsSources = const []
765-
#endif
766762

767763
-- | Get all dependencies of a package, including library,
768764
-- executables, tests, benchmarks.
@@ -868,11 +864,7 @@ resolveConditions rc addDeps (CondNode lib deps cs) = basic <> children
868864
case (flavor, rcCompilerVersion rc) of
869865
(GHC, GhcVersion vghc) -> vghc `withinRange` range
870866
(GHC, GhcjsVersion _ vghc) -> vghc `withinRange` range
871-
#if MIN_VERSION_Cabal(1, 22, 0)
872867
(GHCJS, GhcjsVersion vghcjs _) ->
873-
#else
874-
(OtherCompiler "ghcjs", GhcjsVersion vghcjs _) ->
875-
#endif
876868
vghcjs `withinRange` range
877869
_ -> False
878870

stack-7.8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extra-deps:
2929
# For deepseq-1.4
3030
- deepseq-1.4.1.2
3131
- bytestring-0.10.6.0
32-
- Cabal-1.18.1.6
32+
- Cabal-1.24.2.0
3333
- containers-0.5.6.3
3434
- hpc-0.6.0.2
3535
- process-1.2.1.0

stack.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ library
176176
System.Process.PagerEditor
177177
System.Process.Read
178178
System.Process.Run
179-
build-depends: Cabal >= 1.18.1.5 && < 1.25
179+
build-depends: Cabal >= 1.24 && < 1.25
180180
, aeson (>= 1.0 && < 1.1)
181181
, ansi-terminal >= 0.6.2.3
182182
, async >= 2.0.2 && < 2.2

stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ nix:
1212
packages:
1313
- zlib
1414
extra-deps:
15+
- Cabal-1.24.2.0
1516
- th-utilities-0.2.0.1
1617
- store-0.3
1718
- store-core-0.3

0 commit comments

Comments
 (0)