Set the first multi-repl targets as the active unit
commit0754feb1e3b4bb6a880f90f3f8c54deba4ddc2f9
authorTristan Cacqueray <tdecacqu@redhat.com>
Thu, 24 Aug 2023 12:12:59 +0000 (24 12:12 +0000)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Wed, 10 Jan 2024 01:12:26 +0000 (10 01:12 +0000)
tree11457c9dfea75a754774877c208714d6f30d12ca
parentd9aa8b1fe862eb43abfa6196b56025ed055238e2
Set the first multi-repl targets as the active unit

When using the multi components repl, the last unit given to ghc
is the active unit. This change uses the cabal repl argument
order instead of relying on the 'listDirectory' ordering.
cabal-install/src/Distribution/Client/CmdRepl.hs
cabal-testsuite/PackageTests/MultiRepl/EnabledClosure/cabal.test.hs
cabal-testsuite/PackageTests/MultiRepl/EnabledSucc/cabal.test.hs
doc/internal/multi-repl.md