sort-constraints

DescriptionWhether to sort constraints
TypeBool
Defaultfalse
Ormolufalse
Sincev0.17.0.0

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

The sorting applies wherever we can determine that a constraint tuple is in fact a constraint tuple type (and not a normal tuple type). In some situations we cannot determine this and so the constraints are not sorted.

Note that using this option may result in comments inside constraints being moved to unexpected locations.

Examples

f :: (Show a, Eq a) => a
f :: (Eq a, Show a) => a

For more examples, see the test files.