summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail06.stderr
blob: 7567a038b4ea5e56888062019faf9056d1575840 (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
[1 of 3] Compiling OverloadedRecFldsFail06_A ( OverloadedRecFldsFail06_A.hs, OverloadedRecFldsFail06_A.o )

OverloadedRecFldsFail06_A.hs:9:15: warning: [-Wunused-top-binds (in -Wextra, -Wunused-binds)]
    Defined but not used: data constructor ‘MkUnused’

OverloadedRecFldsFail06_A.hs:9:42: warning: [-Wunused-top-binds (in -Wextra, -Wunused-binds)]
    Defined but not used: ‘unused2’

OverloadedRecFldsFail06_A.hs:9:59: warning: [-Wunused-top-binds (in -Wextra, -Wunused-binds)]
    Defined but not used: ‘used_locally’
[2 of 3] Compiling Main             ( overloadedrecfldsfail06.hs, overloadedrecfldsfail06.o )

overloadedrecfldsfail06.hs:7:1: error: [-Wunused-imports (in -Wextra), Werror=unused-imports]
    The import of ‘Unused(unused), V(x), U(y), MkV, Unused’
    from module ‘OverloadedRecFldsFail06_A’ is redundant

overloadedrecfldsfail06.hs:8:1: error: [-Wunused-imports (in -Wextra), Werror=unused-imports]
    The qualified import of ‘OverloadedRecFldsFail06_A’ is redundant
      except perhaps to import instances from ‘OverloadedRecFldsFail06_A’
    To import instances alone, use: import OverloadedRecFldsFail06_A()

overloadedrecfldsfail06.hs:9:1: error: [-Wunused-imports (in -Wextra), Werror=unused-imports]
    The qualified import of ‘V(y)’
    from module ‘OverloadedRecFldsFail06_A’ is redundant

overloadedrecfldsfail06.hs:10:1: error: [-Wunused-imports (in -Wextra), Werror=unused-imports]
    The qualified import of ‘U(x), U’
    from module ‘OverloadedRecFldsFail06_A’ is redundant

overloadedrecfldsfail06.hs:15:22: error: [GHC-02256] [-Wambiguous-fields (in -Wdefault), Werror=ambiguous-fields]
    The record update u {x = True} with type U is ambiguous.
    This will not be supported by -XDuplicateRecordFields in future releases of GHC.

overloadedrecfldsfail06.hs:18:28: error: [GHC-02256] [-Wambiguous-fields (in -Wdefault), Werror=ambiguous-fields]
    The record update v {P.x = 3} with type V is ambiguous.
    This will not be supported by -XDuplicateRecordFields in future releases of GHC.