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

Haskell code prettifier

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

Stylish-haskell works great with type-level (*) taken from ``` import GHC.TypeLits ``` but it chokes at ``` import GHC.TypeLits (type (*)) ``` with ``` Warning (stylish-haskell): stylish-haskell failed: :16:48: error:...

Is there a way to align `deriving` close at the next line? With default options (if we uncomment format records rules formatter change ```hs data Tmp1 = A | B...

I occasionally run into situations where I want to manually format a block, e.g. with `servant-openapi3`: ```haskell -- | The Work API -- ... data WorkAPI n mode = WorkAPI...

any formatting of the module header will remove the `#ifdef` and `#endif` ```haskell module Email ( Email , mkEmail #ifdef TESTING , mkEmailUNSAFE #endif , unEmail , validate ) where...

`long_list_align: multiline` is great for neatly arranging my imports, but if my imports have long constructor lists, those lists will blow past the column limit, which seems like a bug...

In version 0.11.0.3, a configuration containing ``` list_align: new_line long_list_align: new_line_multiline ``` was producing a nice consistent layout with all imported stuff in a new line and longer than 80...

Adding `MultlineOnly` mode which forces multiline output without trying inline first. Related to #467

This patch add support for alignment of lists of constructors, class methods, fields names in import lists entities. `ELMultiline` causes ``` import Foo (Bar(x, y)) ``` To be expanded to...

The documentation of these doesn't quite reflect the implementation and it seems to cause some confusion. This patch tries to address it by renaming `LongListAlign` constructors to better reflect what...

Best explained by example. Given this bit of module export list: ``` -- * Table handles , TableHandle , TableConfig (..) , new , close -- ** Resource management --...