diff options
Diffstat (limited to 'testsuite/tests/safeHaskell/safeLanguage/SafeLang10.stderr')
-rw-r--r-- | testsuite/tests/safeHaskell/safeLanguage/SafeLang10.stderr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeLanguage/SafeLang10.stderr b/testsuite/tests/safeHaskell/safeLanguage/SafeLang10.stderr new file mode 100644 index 0000000000..d9a671b08d --- /dev/null +++ b/testsuite/tests/safeHaskell/safeLanguage/SafeLang10.stderr @@ -0,0 +1,20 @@ +[1 of 3] Compiling SafeLang10_A ( SafeLang10_A.hs, SafeLang10_A.o ) +[2 of 3] Compiling SafeLang10_B ( SafeLang10_B.hs, SafeLang10_B.o ) +[3 of 3] Compiling Main ( SafeLang10.hs, SafeLang10.o ) + +SafeLang10.hs:8:13: + Unsafe overlapping instances for Pos [Int] + arising from a use of `res' + The matching instance is: + instance [overlap ok] [safe] Pos [Int] + -- Defined at SafeLang10_B.hs:14:10-18 + It is compiled in a Safe module and as such can only + overlap instances from the same module, however it + overlaps the following instances from different modules: + instance Pos [a] -- Defined at SafeLang10_A.hs:13:10-16 + In the expression: res [(1 :: Int)] + In an equation for `r': r = res [(1 :: Int)] + In the expression: + do { let r = res ...; + putStrLn $ "Result: " ++ show r; + putStrLn $ "Result: " ++ show function } |