tweag / HaskellR

The full power of R in Haskell.

Home Page:https://tweag.github.io/HaskellR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)