summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/overlapping/SH_Overlap6.stderr
blob: f8aabb0c4395b9ab664621161f9e0fe30138f9aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[1 of 3] Compiling SH_Overlap6_B    ( SH_Overlap6_B.hs, SH_Overlap6_B.o )
[2 of 3] Compiling SH_Overlap6_A    ( SH_Overlap6_A.hs, SH_Overlap6_A.o )
[3 of 3] Compiling SH_Overlap6      ( SH_Overlap6.hs, SH_Overlap6.o )

SH_Overlap6.hs:15:8: error: [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_Overlap6_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 [safe] C [a] -- Defined at SH_Overlap6.hs:11:10
    • In the expression: f ([1, 2, 3, 4] :: [Int])
      In an equation for ‘test’: test = f ([1, 2, 3, 4] :: [Int])