summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedlists
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2014-11-10 16:25:58 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2014-11-18 17:33:18 -0800
commit1019e3c6f90e32785c6a75726282b7362e921047 (patch)
tree6394e140fb7e94b06d89355a76efe51a9124b913 /testsuite/tests/overloadedlists
parent483eeba47c8f761e5a0913c37823b640a624c6fb (diff)
downloadhaskell-1019e3c6f90e32785c6a75726282b7362e921047.tar.gz
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
Diffstat (limited to 'testsuite/tests/overloadedlists')
-rw-r--r--testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
index c5338bc43b..9f3a8325c2 100644
--- a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
+++ b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
@@ -3,9 +3,9 @@ overloadedlistsfail01.hs:5:8:
No instance for (Show a0) arising from a use of ‘print’
The type variable ‘a0’ is ambiguous
Note: there are several potential instances:
- instance Show Double -- Defined in ‘GHC.Float’
- instance Show Float -- Defined in ‘GHC.Float’
- instance Show () -- Defined in ‘GHC.Show’
+ instance Show a => Show (Maybe a) -- Defined in ‘GHC.Show’
+ instance Show Ordering -- Defined in ‘GHC.Show’
+ instance Show Integer -- Defined in ‘GHC.Show’
...plus 22 others
In the expression: print [1]
In an equation for ‘main’: main = print [1]
@@ -25,9 +25,9 @@ overloadedlistsfail01.hs:5:15:
arising from the literal ‘1’
The type variable ‘a0’ is ambiguous
Note: there are several potential instances:
+ instance Num Integer -- Defined in ‘GHC.Num’
instance Num Double -- Defined in ‘GHC.Float’
instance Num Float -- Defined in ‘GHC.Float’
- instance Num Int -- Defined in ‘GHC.Num’
...plus two others
In the expression: 1
In the first argument of ‘print’, namely ‘[1]’