VS Code extension for Haskell code formatting based on ormolu tool
- Install https://github.com/tweag/ormolu
- Use VS Code's built-in format or format selection commands.
Example
{
"ormolu.path": "~/ormolu-Linux/ormolu",
"ormolu.args": [
"--no-cabal"
],
}
Code and configuration for the Extension is based on https://github.com/sergey-kintsel/hfmt-vscode by Sergey Kintsel