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

I tried having this in my Haskell source: ```haskell {-# LANGUAGE CPP #-} module Foo where import Prelude () import Prelude.Compat hiding (() #if MIN_VERSION_base_compat (0,9,3) , () #endif )...

``` data News = News { _ntime:: UTCTime , _nsummary :: T.Text } ``` Language.Haskell.Stylish.Parse.parseModule: could not parse : ParseFailed (SrcLoc ".hs" 2 16) "Parse error: :" ver. 0.8.1.0

To reproduce: - download https://fldit-www.cs.uni-dortmund.de/~peter/Haskellprogs/Painter.tgz - navigate to Coalg.hs - `stylish-haskell Coalg.hs` $ stylish-haskell --version stylish-haskell 0.7.1.0

Given the following module using TypeFamilyDependencies ``` 21:21 $ cat src/Bug.hs {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilyDependencies #-} module Bug where type family F a = b | b...

Example: ``` Haskell import Language.Haskell.Syntax (HsExportSpec(HsEVar, HsEAbs, HsEThingAll, HsEThingWith, HsEModuleContents) ``` should be converted to ``` Haskell import Language.Haskell.Syntax (HsExportSpec(HsEVar, HsEAbs, HsEThingAll, HsEThingWith, HsEModuleContents) ``` (Note that I'm starting a...

bug

I'm getting the following error using Atom > Failed to prettify > > Command failed: stylish-haskell > Language.Haskell.Stylish.Parse.parseModule: could not parse : ParseFailed (SrcLoc ".hs" 4 3) "Parse error: prompt"...

Both of the following are valid: ```haskell equals1 :: (Eq a) => a -> a equals2 :: Eq a => a -> a ``` Some people like the first because...

See https://github.com/ekmett/trifecta/pull/73/commits/90d3ea3d568b41806b36910d7a3f7ba19b48573c#diff-5ce974d71a85ffa9de2bd3160230ad6aL61: Before: ```haskell import Control.Lens hiding (() #if MIN_VERSION_lens(4,13,0) && __GLASGOW_HASKELL__ >= 710 ,(:

Consider file with next imports: ```haskell import Distribution.PackageDescription (BuildInfo (includeDirs) , GenericPackageDescription (packageDescription)) ``` When I run `stylish-haskell` over such file current import is aligned in the next less desirable...

The option to disable padding is a good start to be diff safe. There may be a better option I just thought of: define a column (eg. 50) where all...