sort-deriving-clauses
Description | Whether to sort deriving clauses |
---|---|
Type | Bool |
Default | false |
Ormolu | false |
Since | v0.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.