sort-derived-classes

DescriptionWhether to sort derived classes
TypeBool
Defaultfalse
Ormolufalse
SinceUnreleased

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.