single-deriving-parens
| Description | Whether to put parentheses around a single deriving class |
|---|---|
| Options |
|
| Default | always |
| Ormolu | always |
| Since | v0.15.0.0 |
The auto option will keep parentheses if they already exist, but won't add parentheses if not.
Examples
data Foo = Foo
deriving stock (Show)
data Foo = Foo
deriving stock Show
For more examples, see the test files.