-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal init
should allow exe and/or lib and/or tests
#4310
Comments
This use case is now supported in the most recent version of cabal via the following
There is no support currently for generating benchmarks, we should open another issue for that if desired. |
@m-renaud : I suggest a reorganization of these flags according to #7251 (comment)
|
Hey @andreasabel, thanks for flagging this! I'm not opposed to the above recommendation, but I think we should also consider an alternative: warn (or exit init entirely) if an "unused" flag is passed. For example:
|
Yes, unused flags should surely trigger a warning or error. Since I agree with you of course that historic flags ( |
A common pattern (and the default for stack) is to have an
app
directory with the Main.hs for an executable, a library section and a test one.Also, using the same directory for an exe and a lib can lead to compilation of the lib both as a lib and for the exe.
Proposal
app
directory.Perhaps even ask for benchmarks. Default no, initially.
The text was updated successfully, but these errors were encountered: