-
I would expect adding `{- FOURMOLU_DISABLE -}` to the very top of the file and running `fourmolu` would not change anything in the file, but it does change this:
```hs
{- FOURMOLU_DISABLE -}
clas…
-
This would kind of address #20 and #28.
Currently Gild has one special case for formatting: If a field's value can be rendered on one line and has no comments attached, it will be rendered on the …
-
**Describe the bug**
Ormolu is unable to format a selection when it contains a `->` symbol (ex. case expressions)
**To Reproduce**
1. Create a Haskell file with the following code
```haskell
x …
-
E.g.,
```cabal
common base-settings
default-extensions:
TypeOperators
UnboxedTuples
NoImplicitPrelude
NoMonomorphismRestriction
```
Possible solution: sort them by their…
-
Original:
```hs
foo :: IO ()
foo = let
foo' = do
putStrLn "hi"
-- test
in foo' >> putStrLn "bye"
```
First pass:
```hs
foo :: IO ()
foo =
let foo' = do
putStrLn…
-
**Describe the bug**
Reading the code here:
https://github.com/tweag/ormolu/blob/49eb083d2b94ad882b1ff5f8b65f9870ee94a53d/src/Ormolu.hs#L193-L207
It seems like configuration in `.ormolu` files …
-
Fourmolu changes this:
```hs
module Foo where
foo :: Int
foo = 1
where
-- | asdf
bar = 2
-- This is important because:
-- * Reason 1
-- * Reason 2
baz = 3
d…
-
**Describe the bug**
Ormolu sometimes eats line breaks within data type declarations.
**To Reproduce**
Run ormolu on code similar to the following, with a line break before the `=`:
```hs
…
-
tldr: https://github.com/haskell/haskell-language-server/issues/3518#issuecomment-1465303767
## Your environment
Which OS do you use?
Debian
Which version of GHC do you use and how did you in…
-
Today I've upgrade to GHC 9.x from 8.10.4, together with HLS and Cabal. Before the upgrade, I was able to format my code using `fourmolu` alongside VSCode's `"editor.formatOnSaveMode": "modificationsI…