blob: 526228094d2b1e2307568cc4843007db2378792d (
plain)
1
2
3
4
5
6
7
|
T17820d.hs:6:38: error: [GHC-28914]
• Stage error: ‘foo’ is bound at stage 2 but used at stage 1
• In the untyped splice: $(const [| 0 |] foo)
In the Template Haskell quotation
[d| data D = MkD {foo :: Int}
blargh = $(const [| 0 |] foo) |]
|