Configure brittany for haskell

This commit is contained in:
Radon Rosborough 2020-02-19 22:46:52 -08:00
parent 76f0d946e7
commit 8e99a67cc1

View file

@ -445,7 +445,8 @@ modified from what is written to disk, then don't do anything."
'((black . ("black" "-")) '((black . ("black" "-"))
(prettier . (npx "prettier" file)) (prettier . (npx "prettier" file))
(gofmt . ("gofmt")) (gofmt . ("gofmt"))
(terraform . ("terraform" "fmt" "-"))) (terraform . ("terraform" "fmt" "-"))
(brittany . ("brittany" file)))
"Alist of code formatting commands. "Alist of code formatting commands.
The keys may be any symbols you want, and the values are The keys may be any symbols you want, and the values are
commands, lists of strings and symbols, in the format of commands, lists of strings and symbols, in the format of
@ -470,7 +471,8 @@ commands, lists of strings and symbols, in the format of
(typescript-mode . prettier) (typescript-mode . prettier)
(web-mode . prettier) (web-mode . prettier)
(yaml-mode . prettier) (yaml-mode . prettier)
(terraform-mode . terraform)) (terraform-mode . terraform)
(haskell-mode . brittany))
"Alist mapping major mode names to formatters to use in those modes. "Alist mapping major mode names to formatters to use in those modes.
This determines what formatter to use in buffers without a This determines what formatter to use in buffers without a
setting for `apheleia-formatter'. The keys are major mode setting for `apheleia-formatter'. The keys are major mode