blob: 32abdd46c00aa333915a856ab9f3a831d1ccc3be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[1 of 3] Compiling SafeLang10_A (.hs -> .o)
[2 of 3] Compiling SafeLang10_B (.hs -> .o)
[3 of 3] Compiling Main (.hs -> .o)
SafeLang10.hs:8:13:
Unsafe overlapping instances for Pos [Int]
arising from a use of ‘res’
The matching instance is:
instance [overlapping] [safe] Pos [Int]
-- Defined at SafeLang10_B.hs:13: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 Pos [a] -- Defined at SafeLang10_A.hs:13:10
In the expression: res [(1 :: Int)]
In an equation for ‘r’: r = res [(1 :: Int)]
In the expression:
do { let r = res ...;
putStrLn $ "Result: " ++ show r;
putStrLn $ "Result: " ++ show function }
|