You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I use cabal init to build a package that has a library, executable and test suite? As posed, this reads like a multichoice question and answer. The list delimiters around [default: Executable] suggest that too.
$ cabal init
What does the package build:
1) Library
* 2) Executable
3) Library and Executable
4) Test suite
Your choice? [default: Executable] [3,4]
[3,4] is not a valid choice. Please choose a number from 1 to 4.
I don't need help answering this question but as a first time cabal init user but long time cabal user I thought I should show just how much this prompt and response tripped me up.
The text was updated successfully, but these errors were encountered:
Yes, the UI is misleading and, ideally, we should permit this, with the expected semantics. However, it should work also on commandline (cabal init --lib --executable), which potentially has other problems, see #8659.
Considering this is the first issue in almost 15 years to the effect that the UI seems to be multichoice, I'm going to say I disagree that this is an issue that a significant number of users experience. However I do agree there are enhancements to the UI such as taking multiple entries here, at precisely this stage with a prompt that makes sense. It wouldn't be rocket surgery, but it would be a significant change to the prompt code which isn't fun.
How do I use
cabal init
to build a package that has a library, executable and test suite? As posed, this reads like a multichoice question and answer. The list delimiters around[default: Executable]
suggest that too.I don't need help answering this question but as a first time
cabal init
user but long timecabal
user I thought I should show just how much this prompt and response tripped me up.The text was updated successfully, but these errors were encountered: