When outputting list of available instances, sort it.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Tue, 11 Nov 2014 00:25:58 +0000 (16:25 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 19 Nov 2014 01:33:18 +0000 (17:33 -0800)
commit1019e3c6f90e32785c6a75726282b7362e921047
tree6394e140fb7e94b06d89355a76efe51a9124b913
parent483eeba47c8f761e5a0913c37823b640a624c6fb
When outputting list of available instances, sort it.

Summary:
The intent of this commit is to make test suite cases more stable, so that
it doesn't matter what order we load interface files in, the test output
doesn't change.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D484
14 files changed:
compiler/typecheck/TcErrors.lhs
compiler/types/InstEnv.lhs
testsuite/tests/annotations/should_fail/annfail10.stderr
testsuite/tests/ghci.debugger/scripts/break006.stderr
testsuite/tests/ghci.debugger/scripts/print019.stderr
testsuite/tests/ghci/scripts/Defer02.stderr
testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
testsuite/tests/typecheck/should_compile/holes2.stderr
testsuite/tests/typecheck/should_fail/T7857.stderr
testsuite/tests/typecheck/should_fail/tcfail008.stderr
testsuite/tests/typecheck/should_fail/tcfail043.stderr
testsuite/tests/typecheck/should_fail/tcfail072.stderr
testsuite/tests/typecheck/should_fail/tcfail133.stderr
testsuite/tests/typecheck/should_fail/tcfail181.stderr