Adjust args to selectComponentTarget functions
Previously they took a TargetSelector that would always be a TargetComponent constructor, which meant that if we were interested in the content then we'd have to do partial pattern matching. Instead they now take all the contents of the TargetComponent as separate args which means no partial patterns and easy access to the parts. Also where relevant, put the TargetComponent contents into the TargetProblemCommon and TargetProblem constructors.
Showing
- cabal-install/Distribution/Client/CmdBench.hs 5 additions, 6 deletionscabal-install/Distribution/Client/CmdBench.hs
- cabal-install/Distribution/Client/CmdBuild.hs 3 additions, 3 deletionscabal-install/Distribution/Client/CmdBuild.hs
- cabal-install/Distribution/Client/CmdHaddock.hs 3 additions, 3 deletionscabal-install/Distribution/Client/CmdHaddock.hs
- cabal-install/Distribution/Client/CmdRepl.hs 3 additions, 3 deletionscabal-install/Distribution/Client/CmdRepl.hs
- cabal-install/Distribution/Client/CmdRun.hs 5 additions, 5 deletionscabal-install/Distribution/Client/CmdRun.hs
- cabal-install/Distribution/Client/CmdTest.hs 5 additions, 5 deletionscabal-install/Distribution/Client/CmdTest.hs
- cabal-install/Distribution/Client/ProjectOrchestration.hs 20 additions, 14 deletionscabal-install/Distribution/Client/ProjectOrchestration.hs
Please register or sign in to comment