-
**Describe the bug**
**To Reproduce**
```hs
f x = 1 / (1 + exp (-x))
```
gets reformatted as
```hs
f x = 1 / (1 + exp (- x))
```
Apparently GHC still treats this as equivalent, but it's v…
-
It is useful to be able to quickly reorder or append to lists with one element per line. For example
```text
[
1,
3,
2,
]
-- to
[
1,
2,
3,
]
```
Currently, if the last li…
-
Currently there seems to be no way to write the output to a different file.
For example:
```
smlfmt --preview-only a.sml > b.sml
```
will produce an invalid b.sml that doesn't compile.
And furth…
ii8 updated
10 months ago
-
Hi, I'm not sure if the AST would allow us to do this, but it would be great if this formatting of comment placement was preserved by ormolu:
```haskell
if something
-- then comment
then do
…
-
Here's a sample file that triggers the exception:
```haskell
module Main where
main :: IO ()
main = do
input
-
### Steps to reproduce
Using Nix for package management using "nix-shell -p ghc haskell-language-server" sets up an environment with:
HLS version: 1.6.1.1
GHC version: 9.0.2
### Expected beh…
-
Changing arbitrary formatting decisions like [this one](https://github.com/tweag/ormolu/issues/264) prompted it.
It's ok to be an opinionated formatter, not allowing any options.
It's no longer …
-
### Your environment
Which OS do you use? ArchLinux (up-to-date)
Which version of GHC do you use and how did you install it? 9.4.8, via GHCup
How is your project built (alternative: link …
-
### Your environment
#### Which OS do you use?
Operating System: openSUSE Tumbleweed 20231206
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kerne…
-
@leoqiao18 how do we run ormolu now? can you add a note here
https://github.com/Barnard-PL-Labs/tsltools/blob/4ed28928447f901d92a010d5b915050a0ec7a537/CONTRIBUTING.md?plain=1#L53