diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-11-10 16:25:58 -0800 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-11-18 17:33:18 -0800 |
commit | 1019e3c6f90e32785c6a75726282b7362e921047 (patch) | |
tree | 6394e140fb7e94b06d89355a76efe51a9124b913 /testsuite/tests/annotations | |
parent | 483eeba47c8f761e5a0913c37823b640a624c6fb (diff) | |
download | haskell-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/annotations')
-rw-r--r-- | testsuite/tests/annotations/should_fail/annfail10.stderr | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail10.stderr b/testsuite/tests/annotations/should_fail/annfail10.stderr index 4723db19cb..baddbbd035 100644 --- a/testsuite/tests/annotations/should_fail/annfail10.stderr +++ b/testsuite/tests/annotations/should_fail/annfail10.stderr @@ -3,12 +3,14 @@ annfail10.hs:9:1: No instance for (Data.Data.Data a0) arising from an annotation The type variable ‘a0’ is ambiguous Note: there are several potential instances: - instance Data.Data.Data () -- Defined in ‘Data.Data’ instance (Data.Data.Data a, Data.Data.Data b) => - Data.Data.Data (a, b) + Data.Data.Data (Either a b) -- Defined in ‘Data.Data’ - instance (Data.Data.Data a, Data.Data.Data b, Data.Data.Data c) => - Data.Data.Data (a, b, c) + instance Data.Data.Data t => Data.Data.Data (Data.Proxy.Proxy t) + -- Defined in ‘Data.Data’ + instance (GHC.Types.Coercible a b, Data.Data.Data a, + Data.Data.Data b) => + Data.Data.Data (Data.Type.Coercion.Coercion a b) -- Defined in ‘Data.Data’ ...plus 31 others In the annotation: {-# ANN f 1 #-} @@ -17,8 +19,8 @@ annfail10.hs:9:11: No instance for (Num a0) arising from the literal ‘1’ The type variable ‘a0’ is ambiguous Note: there are several potential instances: - instance Num Double -- Defined in ‘GHC.Float’ - instance Num Float -- Defined in ‘GHC.Float’ - instance Num Int -- Defined in ‘GHC.Num’ + instance Num GHC.Int.Int16 -- Defined in ‘GHC.Int’ + instance Num GHC.Int.Int32 -- Defined in ‘GHC.Int’ + instance Num GHC.Int.Int64 -- Defined in ‘GHC.Int’ ...plus 11 others In the annotation: {-# ANN f 1 #-} |