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

```hs data D = D {} ``` ``` error: Cannot parse data constructor in a data/newtype declaration: {} ``` Maybe I'm doing something wrong and type of definitions is not...

The docs for `space_surround`: ``` Space surround option affects formatting of import lists on a single line.... ``` Can this feature be extended to also cover record updates, such as:...

Can Stylish Haskell format values? I am trying to format this value: ``` psBool :: PSType psBool = TypeInfo { _typePackage = "", _typeModule = "Prim", _typeName = "Boolean", _typeParameters...

I think https://github.com/haskell/stylish-haskell/pull/445 may have fixed an issue with Stylish Haskell and GHC 9.2-9.4 Would you publish a fix version? https://hackage.haskell.org/package/stylish-haskell-0.14.4.0 I am trying to get this fix into NixPkgs....

The formatter will reformat unboxed tuples to regular tuples by dropping the `#` character and removing necessary whitespace between the unboxed tuple and tuples elements. For example, the following type:...

Attempting to format a `newtype` with `-XGADTSyntax` or `-XGADTs` such as: ```haskell import Data.Kind newtype T (a :: Type) :: Type where T :: {unT :: a -> a} ->...

It's common to write SQL queries with Esqueleto without indent lines under a `do`, like this: ```haskell getJohns = select $ do people

Initial formatting ```hs data Foo = Foo { foo :: Int } -- ^ foo | Bar ``` after the first run ```hs data Foo = Foo { foo ::...

The problem is related to #108, however wasn't fixed. I'm working on windows and have a problem with the latest version from haskell/stylish-haskell (closes #428). Maybe printing to the file...

https://github.com/haskell/stylish-haskell/blob/05cc9e18f39ee7d465746d8493832e4012d6674b/README.markdown?plain=1#L17 A counterexample to these instructions is: - #405 The recipe there is: `cabal install -c 'stylish-haskell +ghc-lib' stylish-haskell`.