blob: 786a0befa5a7057e8b5701d467074dde6b8906b1 (
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
|
T10945.hs:7:4: error:
• Couldn't match type ‘[Dec]’ with ‘TExp DecsQ’
Expected type: Q (TExp DecsQ)
Actual type: Q [Dec]
• In the expression:
return
[SigD
(mkName "m")
(ForallT
[PlainTV (mkName "a")] []
(AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]]
In the Template Haskell splice
$$(return
[SigD
(mkName "m")
(ForallT
[PlainTV (mkName "a")] []
(AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]])
In the expression:
$$(return
[SigD
(mkName "m")
(ForallT
[PlainTV (mkName "a")] []
(AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
FunD (mkName "m") [Clause ... (NormalB (VarE (mkName "x"))) []]])
|