-
Notifications
You must be signed in to change notification settings - Fork 347
Make import sorting/aligning optional #914
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
Comments
What function does the sorting? |
|
Ah, I see. It should:
That way we can get away without a setting with a 'just works!' functionality. Somebody needs to implement the 'is sorted' function. |
I see what you mean about having a "just works!" functionality, but then that will also require being able to adapt to current aligning strategy, etc. I think it would be much easier to just have a setting. Maybe even (ab)use |
Customization options present a usability challenge. They are a testing nightmare and require users to discover the option even exists. |
Did you see my update? (I did an edit of my previous comment right after I posted it.) This of course assumes that the stylish-haskell config doesn't have The other possible solution - and why I see the noticeable changes - is that the sorting and aligning in haskell-mode doesn't seem to have anything similar to stylish-haskell's |
If we can use preexisting option then I'm okay with it. |
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
I use
stylish-haskell
to sort and align my imports; it's thus visually confusing when I add an import, haskell-mode sorts and aligns it (undoing some of the layout that stylish-haskell does), and then as soon as I save the layout changes again.The text was updated successfully, but these errors were encountered: