ormolu icon indicating copy to clipboard operation
ormolu copied to clipboard

A formatter for Haskell source code

Results 79 ormolu issues
Sort by recently updated
recently updated
newest added

``` $ cat repro.hs foo = case x of _ -> 1 -- comment where x = 1 $ ormolu -c repro.hs repro.hs @@ -1,6 +1,7 @@ foo = case...

bug
comments
idempotence

``` $ cat repro.hs foo = case a of b -- comment -> c $ ormolu -c repro.hs repro.hs @@ -1,3 +1,4 @@ foo = case a of - b...

bug
comments
idempotence

**Describe the bug** `ormolu` (version 0.1.4.0) can relocate an inline comment on the field of a data type to an awkward spot **To Reproduce** Run ormolu on the following file...

style

**Describe the bug** This snippet can't be formatted without `--unsafe` (minimized from [Agda](https://github.com/agda/agda/blob/3376fcd27edebfa90a3267cb26187f4bc6318c96/src/full/Agda/Syntax/Internal.hs#L641-L647)): ```haskell data A = A :# A -- ^ foo ``` With `--unsafe`, it is formatted to...

bug
comments

This snippet (minimized from [here](https://github.com/hasura/graphql-engine/blob/a0118c99dbdabf24e17008afd5c361d1a896e32a/server/src-lib/Hasura/Backends/BigQuery/Types.hs#L381-L402)) is non-idempotent: ```haskell data A = A -- | B deriving (Eq) ``` to ```haskell data A = A deriving (-- | B Eq) ```...

bug
comments
idempotence

**Describe the bug** The following source code will be reformatted twice: ```hs foo :: IO () foo = let foo' = do putStrLn "hi" -- test in foo' >> putStrLn...

bug
comments
idempotence

**Describe the bug** The snippet ```haskell {-# LANGUAGE Arrows #-} foo = proc x -> do returnA -< x 1123 ``` is formatted (with `--unsafe`) into ```haskell {-# LANGUAGE Arrows...

bug

It would be super hard for Ormulu to figure how to preserve alignment: (sorry, scrambled after the diff): ``` -igLkcrdYnsh s l = ntfa - [ "Ig" % K ....

feature-request

**Describe the bug** The positioning of `$` changes depending other line breaks in the expression. **To Reproduce** ```haskell shortExpr $ otherExpr ``` Now add a composition before the application: ```haskell...

style

**Is your feature request related to a problem? Please describe.** We use both Ormolu and a line-length linter at work. Sometimes I end up in situations where running Ormolu makes...

feature-request