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