Mention which -Werror promoted a warning to an error
[ghc.git] / testsuite / tests / safeHaskell / overlapping / SH_Overlap7.stderr
1 [1 of 3] Compiling SH_Overlap7_B    ( SH_Overlap7_B.hs, SH_Overlap7_B.o )
2 [2 of 3] Compiling SH_Overlap7_A    ( SH_Overlap7_A.hs, SH_Overlap7_A.o )
3 [3 of 3] Compiling SH_Overlap7      ( SH_Overlap7.hs, SH_Overlap7.o )
4
5 SH_Overlap7.hs:1:16: error: [-Wunsafe, -Werror=unsafe]
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])