haskell / haskell/stylish-haskell

Keeping the deriving clause of a record on the same line as the closing curly brace

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

Description

Hi, I just upgraded to the latest stylish-haskell binary, but I would like to keep the previous behaviour where, in the case of a sole deriving clause, said clause is kept on the same line as the closing curly brace of the record.

Right now, the current settings produce this kind of formatting

```haskell
data Test
= Test { top :: Int
, bottom :: String
}
deriving (Show)
````

Which I personally find quite awkward.

Would you be open to a pull request implementing a configuration option for this behaviour?

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.