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

Haskell code prettifier

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

If the exported element has a comment assigned to it (placed on the same line), after formatting the comment is placed one line below the exported element ## Example: *Before:*...

## How it would work *Before:* ``` module Mod ( Foo (Bar, Baz) ) where data Foo = Bar | Baz ``` *After:* ``` module Mod ( Foo ( Bar...

Default behavior remains the same, but when you set `break_newtypes` to `false` newtypes will be formatted on a single line.

At the moment, `stylish-haskell` looks for `.cabal` files based on the directory where you run the command from, not on where the file itself is. Why does this matter? In...

At the moment, if you run `stylish-haskell` on a file it can't parse, then it returns 1. However, this makes it a bit harder than necessary for tools that want...

I'm looking at the Example section in the README and that is exactly how I want my code to be formatted but it doesn't seem to be possible. The `deriving...

I'm trying to install stylish-haskell using `cabal install stylish-haskell` which results in the long error message, the gist of which is: ```lib/Language/Haskell/Stylish/Config/Cabal.hs:91:45: error: • Variable not in scope: () ::...

If I use `-XNamedFieldPuns`, stylish-haskell will not format the document.

Take this code: ```haskell data Foo = Foo { foo :: Foo "кек" } ``` There are non-ASCII UTF8 symbols in the type parameter (and it's perfectly OK). `stylish-haskell` does...

Is there any plan for supporting `.hsc` files? Maybe stylish-haskell could automatically apply the `CPP` extension for these files?