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

Remove duplication in imports #414

Closed
tseenshe opened this issue Oct 21, 2019 · 1 comment · Fixed by #626
Closed

Remove duplication in imports #414

tseenshe opened this issue Oct 21, 2019 · 1 comment · Fixed by #626
Assignees

Comments

@tseenshe
Copy link

It would be very useful if ormolu were to de-dupe import sections such as

import Data.List (nub)
import Data.List (nubBy)

into

import Data.List (nub, nubBy)

This would reduce the burden on tools that add imports such as haskell-tng-import-symbol-at-point

@mrkkrp
Copy link
Member

mrkkrp commented Oct 21, 2019

I don’t have anything against it, but realistically it’s going to be a pretty low-priority target.

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

Successfully merging a pull request may close this issue.

2 participants