Unable to access list fields
asrvsn opened this issue · comments
The following fails:
result <- [r| x <- list()
x$a <- "foo"
x$b <- "bar"
|]
print [r| result_hs$a |]
with the errors
Not in scope: ‘result_hs’ In the Template Haskell quotation [| (result_hs) ($a) |]
Not in scope: ‘a’ In the splice: $a In the Template Haskell quotation [| (result_hs) ($a) |]
R's $
accessor seems to have unfortunate conflicts with TH.
Whoops, never mind -- was due to a compile error elsewhere :)