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

Rename config files and clarify their purposes (#969) #1058

Merged
merged 4 commits into from
Sep 27, 2015

Conversation

borsboom
Copy link
Contributor

  • Rename ~/.stack/stack.yaml to ~/.stack/config.yaml
  • Rename ~/.stack/global to ~/.stack/global-project
  • Rename /etc/stack/config to /etc/stack/config.yaml
  • Support old locations of the renamed paths, with deprecation warnings
  • Clarify wording of some messages
  • Write comment to top of new ~/.stack/config.yaml describing its purpose
  • Write comment to top of new ~/.stack/global-project/stack.yaml describing its purpose
  • Write ~/.stack/global-project/README describing the purpose of the directory

* Rename `~/.stack/stack.yaml` to `~/.stack/config.yaml`
* Rename `~/.stack/global` to `~/.stack/global-project`
* Rename `/etc/stack/config` to `/etc/stack/config.yaml`
* Support old locations of the renamed paths, with deprecation warnings
* Clarify wording of some messages
* Write comment to top of new `~/.stack/config.yaml` describing its purpose
* Write comment to top of new `~/.stack/global-project/stack.yaml` describing its purpose
* Write `~/.stack/global-project/README` describing the purpose of the directory
@borsboom
Copy link
Contributor Author

liftIO $ Yaml.encodeFile dest' p
liftIO $ do
S.writeFile dest'
("# This is the implicit global project's config file, which is only used when\n" <>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit of code has bad complexity characteristics. It would be better to use S.concat or a Builder.

@snoyberg
Copy link
Contributor

LGTM. I'm sure we can bikeshed on the filenames for quite a while, I'm happy with the decisions you've made here.

borsboom added a commit that referenced this pull request Sep 27, 2015
Rename config files and clarify their purposes (#969)
@borsboom borsboom merged commit 06a4b27 into master Sep 27, 2015
@dysinger dysinger deleted the pr/969-rename-configs branch April 7, 2016 00:55
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