summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/ghci/p13.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/safeHaskell/ghci/p13.stderr')
-rw-r--r--testsuite/tests/safeHaskell/ghci/p13.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/ghci/p13.stderr b/testsuite/tests/safeHaskell/ghci/p13.stderr
new file mode 100644
index 0000000000..226aac2f05
--- /dev/null
+++ b/testsuite/tests/safeHaskell/ghci/p13.stderr
@@ -0,0 +1,13 @@
+
+<interactive>:12:1:
+ Unsafe overlapping instances for Pos [Int]
+ arising from a use of ‛res’
+ The matching instance is:
+ instance [overlap ok] [safe] Pos [Int]
+ -- Defined at <interactive>:10:10
+ 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 [overlap ok] [safe] Pos [a] -- Defined at P13_A.hs:6:10
+ In the expression: res [1 :: Int, 2 :: Int]
+ In an equation for ‛it’: it = res [1 :: Int, 2 :: Int]