Skip to content

Commit a3d1535

Browse files
committed
Also hint that the "all" target can be used
1 parent 7b05e28 commit a3d1535

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

cabal-install/src/Distribution/Client/CmdRepl.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ reportProjectNoTarget projectFile pkgs =
583583
Flag "" -> Nothing
584584
Flag n -> Just $ quotes (text n)
585585
_ -> Nothing
586-
pickComponent = text "pick a single [package:][ctype:]component as target for the REPL command."
586+
pickComponent = text "pick a single [package:][ctype:]component (or all) as target for the REPL command."
587587

588588
validatedTargets
589589
:: Verbosity

cabal-testsuite/PackageTests/ReplProjectTargetTwoPkgs/cabal.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ Configuring library for fake-package-0...
88
# checking repl command with a 'cabal.project' and no project options
99
# cabal repl
1010
Error: [Cabal-7076]
11-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages from which to select a component in 'cabal.project', the implicit default as if `--project-file=cabal.project` was added as a command option, are:
11+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages from which to select a component in 'cabal.project', the implicit default as if `--project-file=cabal.project` was added as a command option, are:
1212
- pkg-one
1313
- pkg-two
1414
# checking repl command using an explicit 'some.project'
1515
# cabal repl
1616
Error: [Cabal-7076]
17-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'some.project' from which to select a component target are:
17+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages in 'some.project' from which to select a component target are:
1818
- pkg-one
1919
- pkg-two
2020
# checking repl command using an explicit 'reverse.project', listing packages in reverse order
2121
# cabal repl
2222
Error: [Cabal-7076]
23-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'reverse.project' from which to select a component target are:
23+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages in 'reverse.project' from which to select a component target are:
2424
- pkg-one
2525
- pkg-two
2626
# checking repl command with an 'empty.project' with no packages
2727
# cabal repl
2828
Warning: There are no packages or optional-packages in the project
2929
Error: [Cabal-7076]
30-
There are no packages in 'empty.project'. Please add a package to the project and pick a single [package:][ctype:]component as target for the REPL command.
30+
There are no packages in 'empty.project'. Please add a package to the project and pick a single [package:][ctype:]component (or all) as target for the REPL command.
3131
# checking repl command with a missing 'missing.project'
3232
# cabal repl
3333
# checking repl command with a missing 'missing.project'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages from which to select a component in 'cabal.project', the implicit default as if `--project-file=cabal.project` was added as a command option, are:
1+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages from which to select a component in 'cabal.project', the implicit default as if `--project-file=cabal.project` was added as a command option, are:
22
- pkg-one
33
- pkg-two
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'reverse.project' from which to select a component target are:
1+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages in 'reverse.project' from which to select a component target are:
22
- pkg-one
33
- pkg-two
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'some.project' from which to select a component target are:
1+
Please pick a single [package:][ctype:]component (or all) as target for the REPL command. The packages in 'some.project' from which to select a component target are:
22
- pkg-one
33
- pkg-two
44

0 commit comments

Comments
 (0)