stylish-haskell
stylish-haskell copied to clipboard
Haskell code prettifier
Hello, i've tried to add pre-commit support for users of stylish-haskell. You can test it, by - cloning my fork locally - create a a new folder e.g. `Example` outside...
It would lead to a race condition in hls https://github.com/haskell/haskell-language-server/issues/4234 @michaelpj suggested we should have a version that take dir instead
With `error_code: normal` `stylish-haskell` doesn't return a non-zero exit code if there are formatting errors. It does so when `error_code: error_on_format`. With the former, errors in all files are reported;...
I'm getting :117:23: error: [GHC-51179] Illegal \case with `default-language: GHC2024`. Adding `{-# LANGUAGE LambdaCase #-}` to the file fixes the problem.
I tried different combinations of options, and there is currently no way to format a `data` declaration like this: ```haskell data Temperature = Temperature { unit :: Char , value...
(moved from https://github.com/haskell/haskell-language-server/issues/4466) ### Behavior summary by stylish-haskell version(s): * 0.14.6.0 - `Main.hs: :5:6: error: parse error on input `:'` * 0.13.0.0 - `Main.hs: RealSrcSpan SrcSpanOneLine "Main.hs" 5 6 7:...