sort-deriving-clauses

DescriptionWhether to sort deriving clauses
TypeBool
Defaultfalse
Ormolufalse
SinceUnreleased

This option determines whether to sort deriving clauses.

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

Examples

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

For more examples, see the test files.