sort-deriving-clauses

DescriptionWhether to sort deriving clauses
TypeBool
Defaultfalse
Ormolufalse
Sincev0.17.0.0

This option determines whether deriving clauses should be sorted alphabetically or left alone.

Note that using this option may cause comments between deriving clauses to be misplaced.

Examples

newtype A = A Int
    deriving newtype (Num)
    deriving (ToJSON)
    deriving stock (Show, Eq, Ord, Generic)
newtype A = A Int
    deriving (ToJSON)
    deriving stock (Show, Eq, Ord, Generic)
    deriving newtype (Num)

For more examples, see the test files.