haskell / haskell/stylish-haskell

Inline comment to the last constructor disapears

Open
#425 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.