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

ormolu backend for haskell-mode is broken #312

Open
Eason0210 opened this issue Aug 3, 2024 · 0 comments
Open

ormolu backend for haskell-mode is broken #312

Eason0210 opened this issue Aug 3, 2024 · 0 comments

Comments

@Eason0210
Copy link

Eason0210 commented Aug 3, 2024

Hi,

Because the default brittany for haskell-mode is unmaintained, and the repos recommand to use ormolu instead.

But the ormolu (version: ormolu 0.7.7.0) don't works with cabal project, will get below error message in *aphelia-ormolu-log* buffer:

$ ormolu

The --stdin-input-file option is necessary when using input
from stdin and accounting for .cabal files

Command failed with exit code 9.

my configs:

(setf (alist-get 'haskell-mode apheleia-mode-alist) 'ormolu)

with below config, will fix the issue.

(push '(ormolu . ("ormolu"
                    `("--stdin-input-file" ,buffer-file-name)))
        apheleia-formatters)

Expected this can be fixed in apheleia.

Maybe it is time to change the default backend for haskell-mode to ormolu instead of brittany?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant