haskell / haskell/stylish-haskell
Inline comment to the last constructor disapears
- Dominant language
- Haskell
- Stars
- 1k
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
(with `stylish-haskell 0.14.3.0`):
It happens with enums, constructor with fields and records:
```hs
data Foo
= Foo -- ^ foo
| Bar -- ^ bar
| Baz -- ^ baz
data Foo'
= Foo' Int -- ^ foo
| Bar' Int -- ^ bar
| Baz' Int -- ^ baz
data Foo''
= Foo''
{ foo :: Int
}
-- ^ foo
| Bar''
{ bar :: Int
}
-- ^ bar
| Baz''
{ baz :: Int
}
-- ^ baz
```
after stylish:
```hs
data Foo
= Foo -- ^ foo
| Bar -- ^ bar
| Baz
data Foo'
= Foo' Int -- ^ foo
| Bar' Int -- ^ bar
| Baz' Int
data Foo''
= Foo''
{ foo :: Int
}
-- ^ foo
| Bar''
{ bar :: Int
}
-- ^ bar
| Baz''
{ baz :: Int
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.