blob: c912c3c4ee1465ec4d16568ec3ac9d62702f0299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
GHCiDRF.foo :: T -> Int
<interactive>:1:1: error:
Ambiguous occurrence ‘GHCiDRF.bar’
It could refer to
either the field ‘bar’ of record ‘T’, defined at GHCiDRF.hs:3:28
or the field ‘bar’ of record ‘U’, defined at GHCiDRF.hs:4:16
type T :: *
data T = MkT {foo :: Int, ...}
-- Defined at GHCiDRF.hs:3:16
type T :: *
data T = MkT {..., bar :: Int}
-- Defined at GHCiDRF.hs:3:28
type U :: *
data U = MkU {bar :: Bool}
-- Defined at GHCiDRF.hs:4:16
GHCiDRF.foo :: GHCiDRF.T -> Int
<interactive>:1:1: error:
Ambiguous occurrence ‘GHCiDRF.bar’
It could refer to
either the field ‘bar’,
imported qualified from ‘GHCiDRF’
(and originally defined at GHCiDRF.hs:3:28-30)
or the field ‘bar’,
imported qualified from ‘GHCiDRF’
(and originally defined at GHCiDRF.hs:4:16-18)
type GHCiDRF.T :: *
data GHCiDRF.T = GHCiDRF.MkT {GHCiDRF.foo :: Int, ...}
-- Defined at GHCiDRF.hs:3:16
type GHCiDRF.T :: *
data GHCiDRF.T = GHCiDRF.MkT {..., GHCiDRF.bar :: Int}
-- Defined at GHCiDRF.hs:3:28
type GHCiDRF.U :: *
data GHCiDRF.U = GHCiDRF.MkU {GHCiDRF.bar :: Bool}
-- Defined at GHCiDRF.hs:4:16
<interactive>:11:1: error:
Ambiguous occurrence ‘GHCiDRF.bar’
It could refer to
either the field ‘bar’,
imported qualified from ‘GHCiDRF’
(and originally defined at GHCiDRF.hs:3:28-30)
or the field ‘bar’,
imported qualified from ‘GHCiDRF’
(and originally defined at GHCiDRF.hs:4:16-18)
|