stylish-haskell
stylish-haskell copied to clipboard
Haskell code prettifier
``` {-# 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: {} ```...