summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/overlapping/SH_Overlap11.stderr
blob: 7d9acc955297cc77a7cbea3c543a042eeaada880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[1 of 3] Compiling SH_Overlap11_B   ( SH_Overlap11_B.hs, SH_Overlap11_B.o )
[2 of 3] Compiling SH_Overlap11_A   ( SH_Overlap11_A.hs, SH_Overlap11_A.o )
[3 of 3] Compiling SH_Overlap11     ( SH_Overlap11.hs, SH_Overlap11.o )

SH_Overlap11.hs:2:17: warning: [-Wunsafe]
    ‘SH_Overlap11’ has been inferred as unsafe!
    Reason:
        SH_Overlap11.hs:18:8: warning: [GHC-36705]
            • Unsafe overlapping instances for C [Int]
                arising from a use of ‘f’
              The matching instance is:
                instance [overlap ok] [safe] C [Int]
                  -- Defined at SH_Overlap11_A.hs:12:3
              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 C [a] -- Defined at SH_Overlap11.hs:14:3
            • In the expression: f ([1, 2, 3, 4] :: [Int])
              In an equation for ‘test’: test = f ([1, 2, 3, 4] :: [Int])