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

Lookup of .ormolu files is tied to .cabal files, resulting in duplication #1019

Closed
amesgen opened this issue May 3, 2023 · 0 comments · Fixed by #1023
Closed

Lookup of .ormolu files is tied to .cabal files, resulting in duplication #1019

amesgen opened this issue May 3, 2023 · 0 comments · Fixed by #1023
Assignees
Milestone

Comments

@amesgen
Copy link
Member

amesgen commented May 3, 2023

Is your feature request related to a problem? Please describe.
Right now, .ormolu files have to reside next to a .cabal file.

Fixities can also be overridden if .ormolu file is found next to the corresponding Cabal file, i.e. they should be siblings in the same directory.

Actually, this has to be the "nearest" .cabal file, which can be annoying in a repository with a lot of packages/.cabal files, as you then need one .ormolu file (can be a symlink) per .cabal file for it to apply to all source files.

An example for this is https://github.com/wireapp/wire-server, which currently contains 51 .ormolu files.

Describe the solution you'd like
One approach: We could look for .ormolu files separately from .cabal files.

@mrkkrp mrkkrp self-assigned this May 3, 2023
@mrkkrp mrkkrp added this to the 0.7.0.0 milestone May 3, 2023
@mrkkrp mrkkrp modified the milestone: 0.7.0.0 May 12, 2023
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