Skip to content

Commit 65599b7

Browse files
authored
Merge pull request #10609 from haskell/andreabedini-patch-1
Fix mistake in BuildInfo.Lens.hs
2 parents ff61fb0 + ca191dd commit 65599b7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Cabal-syntax/src/Distribution/Types/BuildInfo/Lens.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ instance HasBuildInfo BuildInfo where
274274
cSources f s = fmap (\x -> s{T.cSources = x}) (f (T.cSources s))
275275
{-# INLINE cSources #-}
276276

277-
cxxSources f s = fmap (\x -> s{T.cSources = x}) (f (T.cxxSources s))
277+
cxxSources f s = fmap (\x -> s{T.cxxSources = x}) (f (T.cxxSources s))
278278
{-# INLINE cxxSources #-}
279279

280280
jsSources f s = fmap (\x -> s{T.jsSources = x}) (f (T.jsSources s))

changelog.d/pr-10609

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
synopsis: Fix mistake in BuildInfo/Lens.hs mixing up `c-sources` and `cxx-sources`
3+
packages: [Cabal-syntax]
4+
prs: 10609
5+
---
6+
7+
Fix a typo that would cause cxx-source and c-sources get mixed up.

0 commit comments

Comments
 (0)