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

Closes #328, allowing both `.hsc` files and adding `CPP` to them. For the future, `considerFiles` could instead return something like `Config -> Config` or `Partial Config` if we want to...

Hi, I just upgraded to the latest stylish-haskell binary, but I would like to keep the previous behaviour where, in the case of a sole deriving clause, said clause is...

This is required if stylish-haskell is used as a pre-commit hook, otherwise the hook always fails to complete successfully.

```hs Type { field , field2 :: Int } -- but Type { field , field2 :: Int } deriving Generics [ a , b , c ] -- but...

Would be great to regroup imports depending if they are qualified or not. For example, ```haskell import A import qualified B ``` could be transformed to: ```haskell import A import...

Are there plans to support prettifying haddock style comments? P.S. stylish-haskell is awesome already! Thanks for the hard work!!

Reproduce: Execute `:%!stylish-haskell` or `:call HaskellFormat('stylish')` on a file. Issue: Cursor jumps to the top of the file.

``` haskell {-# LANGUAGE FlexibleContexts #-} module Test where import Control.Monad.Reader test :: MonadReader a m => m a test = undefined ``` This code is OK for GHC, but...

haskell-src-exts

Hi, on top of my file I had the language options: ``` haskell {-# LANGUAGE DataKinds, FlexibleContexts #-} {-# LANGUAGE OverloadedLabels, ScopedTypeVariables, TypeFamilies #-} {-# LANGUAGE TypeOperators, UndecidableInstances #-} ```...

The following piece of code (essentially a modified snippet from _Thinking with Types_ by Sandy Maguire) compiles and runs fine (GHC 8.6.3 on macOS 10.14.2 installed with Stack using lts-13.4)....