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

GHC parses it, but stylish crashes on it. ``` $ diff .stylish-haskell.yaml

Assume column limit is set to 80 (the default). For a top level function that uses pattern matching- ```hs f (x:xs) = undefined f n@(x:y:z:rest) = undefined f (x:y:rest) =...

``` Extensions extracted correctly from .cabal file: [Failed] Extensions extracted correctly from .stylish-haskell.yaml and .cabal files: [Failed] ```

My team at my job is considering expanding our use of `stylish-haskell`. But we have some _sections_ of code that we don't want to style. I'm not seeing anyway to...

I guess it could be made in a similar manner as for imports: options for the padding, spaces after brackets or probably any better ideas.

Hi, I've just noticed that stylish-haskell sometimes removes comments adjacent to pragmas: the config: ``` # stylish-haskell configuration file # ================================== # The stylish-haskell tool is mainly configured by specifying...

Adds a new step to format function signatures Example: ``` input = unlines [ "module Herp where" , "" , "fooBar :: a -> b -> a" , "fooBar v...

wip

Adds an option to use post qualified module imports. Related to #284 Resolves #334 Let me know if any more tests or changes are needed.

Using the latest version of `stylish-haskell` to format a particular file inplace changes the content of the file, and when running `stylish-haskell` again on this file, it doesn't parse anymore....

Example in https://github.com/input-output-hk/ouroboros-network/blob/master/ouroboros-consensus-cardano/src/Ouroboros/Consensus/Cardano/Block.hs#L19 # Example ## Input ``` module Ouroboros.Consensus.Cardano.Block ( HardForkBlock ( BlockByron , BlockShelley , BlockAllegra , BlockMary ) , CardanoBlock) where ``` ## Expected ``` module Ouroboros.Consensus.Cardano.Block...