The Zen of Coding · May 26, 2025
Configuring Helix to auto-format Haskell code
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
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
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.