Skip to content

Do not sort imports twice #1003

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

Merged
merged 2 commits into from
Nov 26, 2015
Merged

Conversation

bergey
Copy link
Contributor

@bergey bergey commented Nov 26, 2015

reuse haskell-stylish-on-save to decide whether to sort & align in haskell-add-import.

closes #914

If `haskell-stylish-on-save` is set, assume that stylish-haskell is
handling import alignment & sorting.  Therefore, do not align and sort
after inserting a new import with `haskell-add-import`.

Add documentation explaining this to both `haskell-stylish-on-save` and
`haskell-add-import`.

closes haskell#914
The immediate motivation is that haskell-modules depends on this
variable due to the previous commit, b6871d1.
gracjan added a commit that referenced this pull request Nov 26, 2015
@gracjan gracjan merged commit 0d3a8d8 into haskell:master Nov 26, 2015
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.

Make import sorting/aligning optional
2 participants