Extend ConfiguredProgram with search locations looked at
This is to allow monitoring programs for changes. The combination of the location where the program was found, and all the other locations where the program was looked for gives the full set of files to monitor for changes in that program. The Program programFindLocation method is extended to return the locations looked at but where the prog was not found. The default implementation of programFindLocation, findProgramOnSearchPath, is extended to return those locations. Other places have to change, mostly just the type. In a couple places in GHC & GHCJS where there is additional searching done, the not-found locations have to be collected and returned.
Showing
- Cabal/Distribution/Simple/GHC.hs 11 additions, 5 deletionsCabal/Distribution/Simple/GHC.hs
- Cabal/Distribution/Simple/GHC/Internal.hs 2 additions, 1 deletionCabal/Distribution/Simple/GHC/Internal.hs
- Cabal/Distribution/Simple/GHCJS.hs 9 additions, 6 deletionsCabal/Distribution/Simple/GHCJS.hs
- Cabal/Distribution/Simple/LHC.hs 3 additions, 2 deletionsCabal/Distribution/Simple/LHC.hs
- Cabal/Distribution/Simple/Program.hs 1 addition, 0 deletionsCabal/Distribution/Simple/Program.hs
- Cabal/Distribution/Simple/Program/Builtin.hs 4 additions, 4 deletionsCabal/Distribution/Simple/Program/Builtin.hs
- Cabal/Distribution/Simple/Program/Db.hs 10 additions, 6 deletionsCabal/Distribution/Simple/Program/Db.hs
- Cabal/Distribution/Simple/Program/Find.hs 2 additions, 2 deletionsCabal/Distribution/Simple/Program/Find.hs
- Cabal/Distribution/Simple/Program/Types.hs 19 additions, 4 deletionsCabal/Distribution/Simple/Program/Types.hs
Loading
Please register or sign in to comment