-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fourmolu hook does not read the cabal files for default-extensions #171
Comments
There's an example in the README, did you follow that? |
I have this pre-commit config and I don't get it: is the ormolu setting supposed to influence fourmolu? What's the status of this issue? Fixed with this trick above, but strangely doesn't work for some other reason on my side? Fourmolu doesn't support this? Or pre-commit doesn't? |
From my experience fourmolu when run from pre-commit.nix:
because setting the
but setting it just in cabal, doesn't fail, but formats the source not respecting the option |
From CHANGELOG it looks like the support for this extensions lands in version 5, while nixpkgs.haskellPackages.fourmolu is 4. |
I have to set
ormolu.defaultExtensions
inflake.nix
to useImportQualifiedPost
in my files, even though invoking Fourmolu manually does not require such since it reads the Cabal files.This seems like pre-commit-hooks.nix is doing something funny that is causing fourmolu to not be able to read these.
commit 60cad1a
The text was updated successfully, but these errors were encountered: