Skip to content

Add Fourmolu (Haskell formatter) #89

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 1 commit into from
Dec 29, 2020
Merged

Add Fourmolu (Haskell formatter) #89

merged 1 commit into from
Dec 29, 2020

Conversation

georgefst
Copy link
Contributor

Fourmolu is a fork of Ormolu, which allows configuration and has quite different default behaviour.

description = "Haskell code prettifier.";
entry =
"${tools.fourmolu}/bin/fourmolu --mode inplace ${
lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) settings.ormolu.defaultExtensions)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't settings come from fourmolu as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, we track upstream very closely. The CLI is unlikely to ever diverge.

We could add a settings.fourmolu instead with the exact same implementation, but I think I prefer it this way.

@domenkozar domenkozar merged commit ac3a4ca into cachix:master Dec 29, 2020
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.

2 participants