VS Code formatter for Haskell extending hindent & stylish-haskell.
This extension depends on hindent & stylish-haskell that you can install via stack:
stack install hindent
stack install stylish-haskell
or cabal:
cabal install hindent
cabal install stylish-haskell
Example:
foo :: String -> String -> Double
foo a b
| c == "Foo = 3" = 3.0
| c == "BarBaz = 2" = 2.0
where
c = a ++ b
Workaround:
foo' :: String -> String -> Double
foo' a b
| c == "Foo " ++ "=" ++ " 3" = 3.0
| c == "BarBaz " ++ "=" ++ " 2" = 2.0
where
c = a ++ b
For detailed change list see CHANGELOG.
Minor bug fixes.
Initial release of Haskell Formatter.
This extension is based on stylish-hindent extension.