blob: 68f679144372d43203c5ae05fec51f57d1f71b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<interactive>:3:9: warning: [GHC-83865] [-Wdeferred-type-errors (in -Wdefault)]
• Couldn't match type ‘[Dec]’ with ‘Exp’
Expected: Q Exp
Actual: Q Language.Haskell.TH.Lib.Internal.Decs
• In the expression: [d| a = () |] :: Q Exp
In an equation for ‘x’: x = [d| a = () |] :: Q Exp
<interactive>:1:1: error:
• Exception when trying to run compile-time code:
<interactive>:3:9: error: [GHC-83865]
• Couldn't match type ‘[Dec]’ with ‘Exp’
Expected: Q Exp
Actual: Q Language.Haskell.TH.Lib.Internal.Decs
• In the expression: [d| a = () |] :: Q Exp
In an equation for ‘x’: x = [d| a = () |] :: Q Exp
(deferred type error)
Code: x
• In the untyped splice: $x
|