-
Notifications
You must be signed in to change notification settings - Fork 697
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
Modern project template/scaffolding for cabal init
#5705
Comments
One nitpick: I cringe at |
@hvr Very valid nitpick, I've updated the "package" name to be Any objections overall? |
can't it be simply |
this is easy to bikeshed issue, I simply cannot resist, sorry for that: I assume that the goal is "show a lot of things cabal can do" ?
|
Let the bikeshedding begin! |
What are folks thoughts on setting up the benchmark suite from the start using |
|
Hmm, I don't want to step on anyone's toes or play "favorites", I just want there to be a good starting place for folks when they create a new project. My reason for leaning towards
Currently true, yes. Although I'm pretty sure that changing |
@m-renaud I'm not sure we should even be providing too featureful templates in |
Agreed, I've removed all references to specific packages above, the main function can just have something like
I'm +1 on this too, it would be nice if you could use Stack templates from summoner. It looks like someone opened an issue against summoner to support |
I think most of the work here is done and this can be closed? |
@gbaz this work is done, yes. |
Overview
Provide a modern project template/scaffolding when running
cabal init
.Target Release: cabal-install 3.0
A number of features (internal libraries, cabal.project files, etc.) have been added over the past several releases but most of them are hidden in the docs (I only found them because I took some time to read through all the Cabal user docs). We should showcase these features and provide a better scaffolding by default when initializing a package.
There are a few options for when to use this new template:
LibraryAndExecutable
package type.PackageScaffolding
package type.New Template
Assume
packageName: myapp
.Directory structure:
myapp.cabal
cabal.project
Related Issues
#5005 - Cabal
init project
command?#5696 - Beginner friendly cabal-install CLI
The text was updated successfully, but these errors were encountered: