single-deriving-parens

DescriptionWhether to put parentheses around a single deriving class
Options
  • auto
  • always
  • never
Defaultalways
Ormolualways
Sincev0.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.