File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Cabal-syntax/src/Distribution/PackageDescription
Cabal-tests/tests/ParserTests/regressions Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ preProcessInternalDeps specVer gpd
271
271
272
272
transformD :: Dependency -> [Dependency ]
273
273
transformD (Dependency pn vr ln)
274
- | pn == thisPn =
274
+ | pn == thisPn && specVer < CabalSpecV3_0 =
275
275
if LMainLibName `NES.member` ln
276
276
then Dependency thisPn vr mainLibSet : sublibs
277
277
else sublibs
@@ -282,9 +282,12 @@ preProcessInternalDeps specVer gpd
282
282
]
283
283
transformD d = [d]
284
284
285
+ -- Always perform transformation for mixins as syntax was only introduced in 3.4
286
+ -- This guard is uncessary as no transformations take place when cabalSpec >= CabalSpecV3_4 but
287
+ -- it more clearly signifies the intent. (See the specVer >= CabalSpecV3_4 line above).
285
288
transformM :: Mixin -> Mixin
286
289
transformM (Mixin pn (LSubLibName uqn) inc)
287
- | pn == thisPn =
290
+ | pn == thisPn && specVer < CabalSpecV3_4 =
288
291
mkMixin (unqualComponentNameToPackageName uqn) LMainLibName inc
289
292
transformM m = m
290
293
Original file line number Diff line number Diff line change 6
6
default-language: Haskell2010
7
7
build-depends:
8
8
base,
9
- sublib
9
+ issue: sublib
10
10
11
11
library sublib
12
12
default-language: Haskell2010
@@ -15,10 +15,10 @@ executable demo-a
15
15
main-is: Main.hs
16
16
build-depends:
17
17
issue,
18
- sublib
18
+ issue: sublib
19
19
20
20
executable demo-b
21
21
main-is: Main.hs
22
22
build-depends:
23
23
issue,
24
- sublib
24
+ issue: sublib
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ runHackageTests opts
290
290
291
291
let
292
292
-- See #10284 for why this value is pinned.
293
- hackageTestsIndexState = " --index-state=2024-08-25 "
293
+ hackageTestsIndexState = " --index-state=2025-01-12 "
294
294
295
295
hackageTest args =
296
296
timedWithCwd
You can’t perform that action at this time.
0 commit comments