Skip to content
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

Default to cabal version 2.4 when running cabal init --simple. #5826

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

m-renaud
Copy link
Collaborator

@m-renaud m-renaud commented Jan 4, 2019

Overview

cabal init --simple provides a way of initializing a cabal package with sensible defaults instead of requiring one to go through the entire interactive prompt. Its goal is to generate a modern directory structure (src/MyLib.hs, app/Main.hs, tests/MyLibTests.hs, etc.) and showcase new cabal features (^>=, recent cabal spec version, common stanzas, etc).

This change defaults to using a more recent cabal spec version instead of the current default of version 1.12.

This partially addresses #5696 and #5705.

Testing

Manually tested. After running cabal init --simple the .cabal file contains cabal-version: 2.4 as the first line of the file.


Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

@m-renaud m-renaud requested a review from 23Skidoo January 4, 2019 19:02
@23Skidoo 23Skidoo merged commit 1feec33 into haskell:master Jan 15, 2019
@23Skidoo
Copy link
Member

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants