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

For example, ``` module Foo where data Foo = Foo foo = undefined ``` should be reformatted to ``` module Foo where data Foo = Foo foo = undefined ```

We have run into an issue with v0.10.0.0 where the code ```haskell go (DoneH hdr rest) = case indexedToParser toIndexed hdr (parseOrderedRecord @a) of Left errMsg -> FailH rest errMsg...

Would there be interest in the option automatically add/manage newlines between top level declarations? If so, what would the params be? Probably the amount of newlines in between. There might...

Using `long_list_align: new_line` I get a new line for my import list that has 4 leading spaces. I would like it to have one leading tab. Even if I have...

enhancement

In order to easier maintain the project we should consider providing golden test mechanism. Proposal 1. there would be dedicated `golden` folder in tests 2. in that folder for each...

```haskell main = putStrLn "Hello World" ``` This is a valid statement in haskell. But there is no change when I type `stylish-haskell -i helloworld.hs`. I was wondering if it...

How much work is it to use Utrecht-style commas in the import lists?

Consider: ``` haskell module Foo where import Data.Monoid -- from base import Data.List -- from base ``` And then: ``` $ stylish-haskell /tmp/Foo.hs module Foo where import Data.List import Data.Monoid...

bug
lossy

Hello! It would be great to add option to style DataTypes and other structures, for example: ``` data Point = Point { pointX :: Double, pointY :: Double , pointName...

Sorting of imports is case sensitive now. Please add an option for insensitive sort.