haskell / haskell/stylish-haskell
`data` indentation starting from begin of line and deriving on same line
Open
- Dominant language
- Haskell
- Stars
- 1k
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
I tried different combinations of options, and there is currently no way to format a `data` declaration like this:
```haskell
data Temperature = Temperature
{ unit :: Char
, value :: Integer
} deriving (Eq, Show)
```
In the `records` section of the configuration, I can't configure whether to indent each field:
- from the beginning of the data constructor (only current behaviour)
- from the beginning of the line
(Also, there is no way to have `deriving` on the same line of the closing bracket)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.