blob: 9c483e3593494a62ff29583d9fe5a077962234d4 (
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
|
[1 of 3] Processing p
[1 of 2] Compiling H[sig] ( p\H.hsig, nothing )
[2 of 2] Compiling M ( p\M.hs, nothing )
bkpfail25.bkp:8:18: warning: [GHC-06201] [-Wmissing-methods (in -Wdefault)]
• No explicit implementation for
‘fmap’
• In the instance declaration for ‘Functor T’
[2 of 3] Processing q
Instantiating q
[1 of 1] Compiling H ( q\H.hs, bkpfail25.out\q\H.o )
[3 of 3] Processing r
Instantiating r
[1 of 1] Including p[H=q:H]
Instantiating p[H=q:H]
[1 of 2] Compiling H[sig] ( p\H.hsig, bkpfail25.out\p\p-D5Mg3foBSCrDbQDKH4WGSG\H.o )
bkpfail25.bkp:13:9: error: [GHC-15843]
• Type constructor ‘T’ has conflicting definitions in the module
and its hsig file.
Main module: type T :: * -> *
type T a = a
Hsig file: type role T nominal
type T :: * -> *
data T a
Illegal parameterized type synonym in implementation of abstract data.
• While checking that ‘q:H’ implements signature ‘H’ in ‘p[H=q:H]’.
Suggested fix:
If possible, eta-reduce the type synonym ‘T’ so that it is nullary.
|