stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Haskell code prettifier

Results 142 stylish-haskell issues
Sort by recently updated
recently updated
newest added

Because the ci runner uses ubuntu-latest the libc version is very recent and the binaries won't run on for example Ubuntu 20 which is still in LTS For wider compatibility...

Resolves #425. I don't think this solution to be nice enough. It works however, as far as I can see (all tests have been passed). I solved this randomly by...

After using [elm-format](https://github.com/avh4/elm-format) (the standard elm formatter) I realized that it would be convenient to have the option to enable a defined number of blank lines between top-level declarations, to...

I've refactored UnicodeSyntax step and extended number of replacable symbols. Old replacement rules for `->`, `::` and `=>` in function type declaration were replaced by more abstract, working for GADTs...

SH formats my GADTs instead of this: ```hs data Foo a where SomeA :: String -> Foo () SomeB :: Bool -> Foo String SomeC :: String -> Foo ()...

For example, by setting `language_variant` to `GHC2021`, all the extensions implied by the GHC2021 language variant will be removed as redundant language pragmas.

Now that `import qualified A` is a new warning `-Wprepositive-qualified-module` without the use of `-XImportQualifiedPost`, and should be `import A qualified`, how do I tell stylish-haskell to not convert the...

stylish-haskell 0.14.4.0 fails to compile with GHC 9.4.5. This breaks `ghcup compile hls --version 2.0.0.0 --ghc 9.4.5`. The output of `cabal install stylish-haskell`: ``` $ cabal install stylish-haskell Resolving dependencies......

closes #426 This branch is based on the #427 because, as I think, we should test the correct behavior for comments to the last constructor here too, but without that...

Here is one of the possible solutions to this issue. It's very straightforward: just collecting all edits and then filtering them and applying only those, that doesn't intersect with the...