Replace -fshow-source-paths with -fhide-source-paths
[ghc.git] / testsuite / tests / safeHaskell / overlapping / SH_Overlap11.stderr
1 [1 of 3] Compiling SH_Overlap11_B   ( SH_Overlap11_B.hs, SH_Overlap11_B.o )
2 [2 of 3] Compiling SH_Overlap11_A   ( SH_Overlap11_A.hs, SH_Overlap11_A.o )
3 [3 of 3] Compiling SH_Overlap11     ( SH_Overlap11.hs, SH_Overlap11.o )
4
5 SH_Overlap11.hs:1:16: warning: [-Wunsafe]
6     ‘SH_Overlap11’ has been inferred as unsafe!
7     Reason:
8         SH_Overlap11.hs:17: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_Overlap11_A.hs:11: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_Overlap11.hs:13:3
18             • In the expression: f ([1, 2, 3, 4] :: [Int])
19               In an equation for ‘test’: test = f ([1, 2, 3, 4] :: [Int])