File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Cabal-tree-diff/src/Data/TreeDiff/Instances Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ instance NoThunks ConfVar
7272instance NoThunks Dependency
7373instance NoThunks Executable
7474instance NoThunks ExecutableScope
75+ instance NoThunks ExtraSource
7576instance NoThunks FlagName
7677instance NoThunks ForeignLib
7778instance NoThunks ForeignLibOption
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ instance ToExpr ExeDependency
7878instance ToExpr Executable
7979instance ToExpr ExecutableScope
8080instance ToExpr ExposedModule
81+ instance ToExpr ExtraSource
8182instance ToExpr FlagAssignment
8283instance ToExpr FlagName
8384instance ToExpr ForeignLib
Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments