haskell / haskell/stylish-haskell

Inline comment to a record constructor leads to non idempotent behavior

Open
#426 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Initial formatting
```hs
data Foo
= Foo { foo :: Int } -- ^ foo
| Bar
```
after the first run
```hs
data Foo
= Foo
{ foo :: Int
} -- ^ foo
| Bar
```
after the second run
```hs
data Foo
= Foo
{ foo :: Int
}
-- ^ foo
| Bar
```
It was discovered by me at the same time as #425, but I think that this is another issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.