sort-derived-classes
Description | Whether to sort derived classes |
---|---|
Type | Bool |
Default | false |
Ormolu | false |
Since | v0.17.0.0 |
This option determines whether classes in deriving clauses should be sorted alphabetically or left alone.
Note that using this option may cause comments inside deriving clauses to be misplaced.
Examples
data A
deriving stock (Show, Eq, Ord, Generic)
data A
deriving stock (Eq, Generic, Ord, Show)
For more examples, see the test files.