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

Fails with ``` ~$ cabal install stylish-haskell Resolving dependencies... Build profile: -w ghc-9.2.3 -O1 In order, the following will be built (use -v for more details): - stylish-haskell-0.14.2.0 (lib) (requires...

Could we add `∀` to `Unicode.hs`? I don't know how to do it. Should be pretty easy for the masters! :-) Thanks for this very helpful formatter!

As `newtype`s always have a single constructor, you would think that they would obey `break_single_constructors`. However, with that set to false, ```haskell newtype Foo = Foo Int ``` becomes ```haskell...

``` stylish-haskell --version stylish-haskell 0.14.1.0 ``` It accepts `StarIsType` fine, but doesn't accept `NoStarIsType` either in config file nor in file header, saying ``` Warning (stylish-haskell): stylish-haskell failed: Unknown extension:...

``` $ stylish-haskell --version 1 stylish-haskell 0.14.1.0 $ echo 'data Item = Item { iBase :: !(Ptr ()) } deriving Show'|stylish-haskell :4:10: error: parse error on input `(' ``` I...

Hi, I'm on stylish-haskell 0.14.1.0 with the default configurations (no configuration files). After going over some testing, it seems that indentation on the import statements is causing a parsing error...

I cloned the repo and ran `nix-shell` without changing anything. It failed with an error. Here are the bits of the build log that seem relevant: ``` Resolving dependencies... cabal:...

With the following config: ``` steps: - records: equals: "same_line" first_field: "indent 4" field_comment: 2 deriving: 4 via: "same_line" break_enums: true break_single_constructors: false curried_context: false columns: 100 ``` It converted...

enhancement

With the following config: ``` - records: equals: "same_line" first_field: "indent 4" field_comment: 2 deriving: 4 via: "same_line" break_enums: true break_single_constructors: false curried_context: false ``` This code: ``` data Foo...

bug

This would allow for nicer CI integration. As it stands it's easy to get the CI to fail when the code isn't styled correctly, but it's rather hard to actually...