stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Haskell code prettifier

Results 146 stylish-haskell issues
Sort by recently updated
recently updated
newest added

``` {-# language UnicodeSyntax #-} module Main where import Prelude qualified as A data Term a where Lit :: A.Int -> Term A.Int Succ :: Term A.Int -> Term A.Int...

Example : ``` {-# language UnicodeSyntax #-} module Main where import Prelude qualified as A data Detail = Detail { id :: String , name :: String } deriving (Show)...

I'm working on windows and using unicode syntax in the source code, processed by stylish lead to the following error: ``` *** Exception: tmp/Main.hs: withFile: invalid argument (invalid character) ```...

(with `stylish-haskell 0.14.3.0`): It happens with enums, constructor with fields and records: ```hs data Foo = Foo -- ^ foo | Bar -- ^ bar | Baz -- ^ baz...

Alongside `newtype` and `data`, GHC 9.6 introduced `type data`.

In my `.stylish-haskell.yaml` I have: ``` # Never align the right hand side of some elements. - simple_align: cases: never top_level_patterns: never records: never multi_way_if: never - squash: {} ```...

Trying to make things work with GHC 9.10, for the purpose of including stylish-haskell in haskell language server (https://github.com/haskell/haskell-language-server/pull/4233)

Reopening https://github.com/haskell/stylish-haskell/pull/482 whose branch I deleted by mistake. Original description: An attempt to resolve https://github.com/haskell/stylish-haskell/issues/478 The intention is to make it possible to avoid dependency on getCurrentDirectory (which is problematic...

Not sure what needs to happen here, but at least updating to use a new `ghc-lib-parser`.