summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedlists
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-12-19 11:08:09 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-12-19 13:12:50 +0100
commit5b8fa46ca37caa9ec83b217a697628135da34506 (patch)
tree88c045a6c084f3958a670a27bf47724251fabc1f /testsuite/tests/overloadedlists
parentcf594fd204f951f849e876cf28f6ac1604184ae7 (diff)
downloadhaskell-5b8fa46ca37caa9ec83b217a697628135da34506.tar.gz
Add Data.Version.makeVersion & `IsList Version`
These two facilities provide some means to avoid the double-breakage caused by first by the deprecation (see #2496), and then again by the actual future field-removal. See also https://groups.google.com/d/msg/haskell-core-libraries/q9H-QlL_gnE/4lbb_mBjre8J for details about this library addition. Reviewed By: ekmett Differential Revision: https://phabricator.haskell.org/D577
Diffstat (limited to 'testsuite/tests/overloadedlists')
-rw-r--r--testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr9
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
index 9f3a8325c2..6516beb078 100644
--- a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
+++ b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
@@ -3,10 +3,11 @@ 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 [safe] Show Data.Version.Version
+ -- Defined in ‘Data.Version’
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
+ ...plus 23 others
In the expression: print [1]
In an equation for ‘main’: main = print [1]
@@ -14,7 +15,9 @@ overloadedlistsfail01.hs:5:14:
No instance for (GHC.Exts.IsList a0)
arising from an overloaded list
The type variable ‘a0’ is ambiguous
- Note: there is a potential instance available:
+ Note: there are several potential instances:
+ instance GHC.Exts.IsList Data.Version.Version
+ -- Defined in ‘GHC.Exts’
instance GHC.Exts.IsList [a] -- Defined in ‘GHC.Exts’
In the first argument of ‘print’, namely ‘[1]’
In the expression: print [1]