sort-derived-classes

DescriptionWhether to sort derived classes
TypeBool
Defaultfalse
Ormolufalse
Sincev0.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.