summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/ghci/p13.stderr
blob: edc4a9a06752a723a409f8e17b7d43cc4e679df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

<interactive>:11:1: error: [GHC-36705]
    • Unsafe overlapping instances for Pos [Int]
        arising from a use of ‘res’
      The matching instance is:
        instance [overlapping] [safe] Pos [Int]
          -- Defined at <interactive>:9:30
      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] Pos [a] -- Defined at P13_A.hs:6:10
    • In the expression: res [1 :: Int, 2 :: Int]
      In an equation for ‘it’: it = res [1 :: Int, 2 :: Int]