Configuring Helix to auto-format Haskell code
This is how you configure Helix to auto-format Haskell code.
Took me a lot of googling and then reading the manual so I hope you find it useful!
[[language]]
name = "haskell"
roots = ["Setup.hs", "stack.yaml", "*.cabal"]
formatter = {command = 'fourmolu', args = ["--stdin-input-file", "%{buffer_name}"]}
auto-format = true