Skip to content

Commit f10ad01

Browse files
committed
Fix some tests
1 parent e8538c6 commit f10ad01

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Cabal-tests/tests/NoThunks.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ instance NoThunks ConfVar
7272
instance NoThunks Dependency
7373
instance NoThunks Executable
7474
instance NoThunks ExecutableScope
75+
instance NoThunks ExtraSource
7576
instance NoThunks FlagName
7677
instance NoThunks ForeignLib
7778
instance NoThunks ForeignLibOption

Cabal-tree-diff/src/Data/TreeDiff/Instances/Cabal.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ instance ToExpr ExeDependency
7878
instance ToExpr Executable
7979
instance ToExpr ExecutableScope
8080
instance ToExpr ExposedModule
81+
instance ToExpr ExtraSource
8182
instance ToExpr FlagAssignment
8283
instance ToExpr FlagName
8384
instance ToExpr ForeignLib

cabal-install/tests/IntegrationTests2.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,12 @@ testTargetSelectorAmbiguous reportSubCase = do
656656

657657
withCFiles :: Executable -> [FilePath] -> Executable
658658
withCFiles exe files =
659-
exe{buildInfo = (buildInfo exe){cSources = map unsafeMakeSymbolicPath files}}
659+
exe{buildInfo = (buildInfo exe){cSources = map (mkExtraSource . unsafeMakeSymbolicPath) files}}
660+
661+
mkExtraSource x = ExtraSource
662+
{ extraSourceFile = x
663+
, extraSourceOpts = []
664+
}
660665

661666
withHsSrcDirs :: Executable -> [FilePath] -> Executable
662667
withHsSrcDirs exe srcDirs =

0 commit comments

Comments
 (0)