diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-04-07 14:54:56 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-04-07 15:10:25 +0100 |
commit | c897613bbf6336d00c9b5433268cb5813308bee9 (patch) | |
tree | 25af8bc9a0cdc2858f7aa6b2a75c7b02651ebc9f /testsuite/tests/overloadedlists | |
parent | 547c597112954353cef7157cb0a389bc4f6303eb (diff) | |
download | haskell-c897613bbf6336d00c9b5433268cb5813308bee9.tar.gz |
Error msg wibbles from reduced module prefixes
Diffstat (limited to 'testsuite/tests/overloadedlists')
-rw-r--r-- | testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr | 70 | ||||
-rw-r--r-- | testsuite/tests/overloadedlists/should_fail/overloadedlistsfail02.stderr | 24 |
2 files changed, 44 insertions, 50 deletions
diff --git a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr index 6516beb078..52658fdd07 100644 --- a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr +++ b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr @@ -1,37 +1,33 @@ - -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’ - ...plus 23 others - In the expression: print [1] - In an equation for ‘main’: main = print [1] - -overloadedlistsfail01.hs:5:14: - No instance for (GHC.Exts.IsList a0) - arising from an overloaded list - The type variable ‘a0’ is ambiguous - 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] - In an equation for ‘main’: main = print [1] - -overloadedlistsfail01.hs:5:15: - No instance for (Num (GHC.Exts.Item a0)) - 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’ - ...plus two others - In the expression: 1 - In the first argument of ‘print’, namely ‘[1]’ - In the expression: print [1] +
+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 Version -- Defined in ‘Data.Version’
+ instance Show a => Show (Maybe a) -- Defined in ‘GHC.Show’
+ instance Show Ordering -- Defined in ‘GHC.Show’
+ ...plus 23 others
+ In the expression: print [1]
+ In an equation for ‘main’: main = print [1]
+
+overloadedlistsfail01.hs:5:14:
+ No instance for (IsList a0) arising from an overloaded list
+ The type variable ‘a0’ is ambiguous
+ Note: there are several potential instances:
+ instance IsList Version -- Defined in ‘GHC.Exts’
+ instance IsList [a] -- Defined in ‘GHC.Exts’
+ In the first argument of ‘print’, namely ‘[1]’
+ In the expression: print [1]
+ In an equation for ‘main’: main = print [1]
+
+overloadedlistsfail01.hs:5:15:
+ No instance for (Num (Item a0)) 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’
+ ...plus two others
+ In the expression: 1
+ In the first argument of ‘print’, namely ‘[1]’
+ In the expression: print [1]
diff --git a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail02.stderr b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail02.stderr index d5f52fd66e..4597e1ce56 100644 --- a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail02.stderr +++ b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail02.stderr @@ -1,13 +1,11 @@ - -overloadedlistsfail02.hs:6:8: - No instance for (GHC.Exts.IsList Foo) - arising from an overloaded list - In the expression: [7] - In an equation for ‘test’: test = [7] - -overloadedlistsfail02.hs:6:9: - No instance for (Num (GHC.Exts.Item Foo)) - arising from the literal ‘7’ - In the expression: 7 - In the expression: [7] - In an equation for ‘test’: test = [7] +
+overloadedlistsfail02.hs:6:8:
+ No instance for (IsList Foo) arising from an overloaded list
+ In the expression: [7]
+ In an equation for ‘test’: test = [7]
+
+overloadedlistsfail02.hs:6:9:
+ No instance for (Num (Item Foo)) arising from the literal ‘7’
+ In the expression: 7
+ In the expression: [7]
+ In an equation for ‘test’: test = [7]
|