717f129dff62ede3d249456fdea6b2bc7986b6c2
[ghc.git] / testsuite / tests / safeHaskell / overlapping / SH_Overlap7.stderr
1 [1 of 3] Compiling SH_Overlap7_B   (.hs -> .o)
2 [2 of 3] Compiling SH_Overlap7_A   (.hs -> .o)
3 [3 of 3] Compiling SH_Overlap7     (.hs -> .o)
4
5 SH_Overlap7.hs:1:16: warning: [-Wunsafe]
6     ‘SH_Overlap7’ has been inferred as unsafe!
7     Reason:
8         SH_Overlap7.hs:14:8: warning:
9             • Unsafe overlapping instances for C [Int]
10                 arising from a use of ‘f’
11               The matching instance is:
12                 instance [overlap ok] [safe] C [Int]
13                   -- Defined at SH_Overlap7_A.hs:12:3
14               It is compiled in a Safe module and as such can only
15               overlap instances from the same module, however it
16               overlaps the following instances from different modules:
17                 instance C [a] -- Defined at SH_Overlap7.hs:10:10
18             • In the expression: f ([1, 2, 3, 4] :: [Int])
19               In an equation for ‘test’: test = f ([1, 2, 3, 4] :: [Int])
20
21 <no location info>: error: 
22 Failing due to -Werror.