stylish-haskell
stylish-haskell copied to clipboard
Haskell code prettifier
``` import Foo ( lots, of, imports , more, imports , and, some, more, imports ) ```
``` import Foo (Bar(..)) import Foo (Bar (..)) ```
A Debian Developer wants to incoporate stylish-haskell into a program called check-all-the-things which performs various automated tests on code. For this purpose, it would be useful if stylish-haskell had a...
`stylish-haskell-0.14.0.0` supports GHC 9.0 & 9.2 now, but it's difficult to integrate it into HLS for GHC 9.0 because it uses `ghc-lib-parser-9.2.*` and `ghc-lib-parser-ex-9.2.*`, while other formatters still use `ghc-lib-parser-9.0.*`....
I'm using stylish-haskell 0.13.0.0 without any configuration. Note how it inserts a space in the middle of a literal in the last line of the example below. This only happens...
One other test also fails: ``` Language.Haskell.Stylish.Config: Extensions extracted correctly from .cabal file: [Failed] ```
https://github.com/haskell/stylish-haskell/blob/1c716235a72474c5a4e65b07f4f3a32602cda231/data/stylish-haskell.yaml#L234-L243 My understanding of this option with value 4 is that after newline on long import string after padding in 4 spaces must be things to import. e.g. from: ```...
So in the documentation: > How many spaces to insert before "deriving" clause. Deriving clauses are always on separate lines. But this case it is not. How to force deriving...
When there is a definition like ```Haskell myFun :: a -> a -> a -> a -> a -> a -> a -> a -> a -> a -> a...