Adjust AltCon Ord instance to match Core linter requirements.
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Wed, 15 Nov 2017 16:42:48 +0000 (11:42 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 15 Nov 2017 19:18:30 +0000 (14:18 -0500)
commite14945ce046a000f1542818cd5cb6007cf2e2422
treecdf74a78aa2270d3a5157f8d51ce234b721e245b
parent3bed4aa703c41ccbd310496420fbb71afdfd99e7
Adjust AltCon Ord instance to match Core linter requirements.

When sorting by the Ord instance put DEFAULT before other constructors.

This is in line with what the core linter requests allowing the use of
the instance for putting alternatives in the correct order.
This implements #14464.

Reviewers: bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, rwbarton, thomie

GHC Trac Issues: #14464

Differential Revision: https://phabricator.haskell.org/D4198
compiler/coreSyn/CoreSyn.hs