stylish-haskell
stylish-haskell copied to clipboard
Haskell code prettifier
Example: `x+y+z` to `x + y + z` Preffered Operators would be `+`,`-`,`/`,`*`,`++`,`=`,`:`,`,`, etc.
With `-XEmptyCase`, this is a valid expression: \case{} Stylish-haskell 0.7.1.0 fails on it. > Language.Haskell.Stylish.Parse.parseModule: could not parse foo.hs: ParseFailed (SrcLoc ".hs" 195 23) "Parse error: }"
If I use `stylish-haskell` on a module with ``` {-# LANGUAGE Unsafe #-} -- "import safe" is enforced ``` I still get the following error: ``` Language.Haskell.Stylish.Parse.parseModule: could not parse...
I was wondering if stylish haskell has currrently some way to have the imports with the next layout: ``` Haskell import OnlineATPs.Defaults ( getDefaults ) import OnlineATPs.Options ( Options (...
The following line ```haskell import Foo ((#|), (#%), (|#), (%#)) ``` is formatted by stylish-haskell as follows: ```haskell import Foo (( #% ), ( #| ), (%#), (|#)) ``` This...
The program below is rejected by `stylish-haskell` ``` haskell module Blah where import Prelude (IO,return) main :: IO () main = do return () ``` with the parse error ```...
Running ``` $ stylish-haskell -i src/ProgramFile.hs ``` results in ``` stylish-haskell: -i: openFile: does not exist (No such file or directory) ``` seems like the option parser has glitched out....
The meaning of this program is changed by running `stylish-haskell` over it. Note the trailing space character in the first line of the quasiquote. ``` haskell {-# LANGUAGE QuasiQuotes #-}...
This is probably a fault of haskell-src-exts, but I have some CPP macros that I use to help [implement some repetitive instances](https://github.com/ivan-m/theseus/blob/edbac4a80bcbff110e224eac4c4ba5cb5d134849/src/Data/Theseus/Values.hs#L54). However, stylish-haskell fails to parse this with: ```...
As a part of the Unicode support feature, I propose that stylish-haskell could support the functions in [base-unicode-symbols](https://hackage.haskell.org/package/base-unicode-symbols). Related code is in [this file](https://github.com/jaspervdj/stylish-haskell/blob/master/src/Language/Haskell/Stylish/Step/UnicodeSyntax.hs#L23-30). Related to #3 and #81. I'd...