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

Bump Fourmolu to 0.7 #563

Merged
merged 2 commits into from
Jul 13, 2022
Merged

Bump Fourmolu to 0.7 #563

merged 2 commits into from
Jul 13, 2022

Conversation

georgefst
Copy link
Contributor

As noted in #502 (comment), our CLI and HLS versions of Fourmolu were out of sync. This re-aligns them. So we can now turn format-on-save back on in our editors.

It would be nice if this wasn't a requirement. This is why I implemented haskell/haskell-language-server#2763, but it isn't clear whether that's currently usable.

As for the actual formatting changes introduced by bumping Fourmolu, they're all ultimately from Ormolu (so it's not my fault!).

@georgefst georgefst requested a review from a team July 11, 2022 18:22
@@ -22,7 +22,7 @@ import Rel8 (
Result,
namesFromLabels,
)
import qualified Rel8 (
import Rel8 qualified (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because we're now using GHC2021, which enables ImportQualifiedPost. Running Fourmolu 0.6 on the command line doesn't apply this styling because it doesn't look for extensions in the cabal file.

&& gc1
`M.isSubmapOf` gc2
&& sh1
== sh2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems to be a victim of Ormolu 0.5's operator fixity overhaul. I'll investigate upstream.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll investigate upstream.

tweag/ormolu#907

@georgefst georgefst added the Ready to merge Ready to merge label Jul 13, 2022
@georgefst georgefst added this pull request to the merge queue Jul 13, 2022
@georgefst georgefst removed the Ready to merge Ready to merge label Jul 13, 2022
Merged via the queue into main with commit 8591050 Jul 13, 2022
@georgefst georgefst deleted the georgefst/fourmolu-0.7 branch July 13, 2022 11:14
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.

None yet

2 participants