Skip to content

Commit

Permalink
Prepend hs-source-dir to match-component haskell#6622
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Apr 5, 2020
1 parent 613a2a2 commit ec06b04
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cabal-install/Distribution/Client/TargetSelector.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2117,11 +2117,12 @@ matchComponentOtherFile :: [KnownComponent] -> String
-> Match (FilePath, KnownComponent)
matchComponentOtherFile cs =
matchFile
[ (file, c)
| c <- cs
, file <- cinfoHsFiles c
++ cinfoCFiles c
++ cinfoJsFiles c
[ (normalise (srcdir </> file), c)
| c <- cs
, srcdir <- cinfoSrcDirs c
, file <- cinfoHsFiles c
++ cinfoCFiles c
++ cinfoJsFiles c
]


Expand Down

0 comments on commit ec06b04

Please sign in to comment.