-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support hpack by running hpack before ormolu #10
Comments
That doesn't sound too unreasonable. Some reservations I would have are:
|
IMHO, this is an upstream problem. Fourmolu should just support hpack/package.yaml. It could even run hpack in memory and then use the exact cabal file logic. |
Oh, also, this In our repo at work, we don't check in
But fourmolu still runs on this file and correctly checks the formatting, although it is not able to figure out default language extensions or fixities for dependencies' operators: https://github.com/fourmolu/fourmolu#language-extensions-dependencies-and-fixities |
I don't think Fourmolu (or Ormolu) should be responsible for generating cabal files. If you're using stack, why not run a short |
Otherwise the cabal files aren't there.
The text was updated successfully, but these errors were encountered: