Refactor match to not use Unique order
authorBartosz Nitka <niteria@gmail.com>
Wed, 29 Jun 2016 10:27:49 +0000 (03:27 -0700)
committerBartosz Nitka <niteria@gmail.com>
Wed, 29 Jun 2016 12:54:58 +0000 (05:54 -0700)
commit9a645a1687aca21f965206f1d8c8bb23dd6410e5
tree54235cd3127ce5a9ab17fbb112fbf7acf4d8d039
parent848e3ceb881ef5a5bbfe23965b75d22f96a21229
Refactor match to not use Unique order

Unique order can introduce nondeterminism.
As a step towards removing the Ord Unique instance
I've refactored the code to use deterministic sets instead.

Test Plan: ./validate

Reviewers: simonmar, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2369

GHC Trac Issues: #4012
compiler/deSugar/Match.hs