yihui / knitr-examples

A collection of knitr examples
488 stars 586 forks source link

haskell engine error #67

Closed hiteck2023 closed 5 years ago

hiteck2023 commented 5 years ago

Hello, I followed the example and type the following in the rmarkdown file,

{r test-haskell, engine='haskell', engine.path="C:\Program Files\Haskell Platform\8.6.5\bin\ghc.exe", cache=TRUE} [x | x <- [1..10], odd x]

And the return is the following Error: unexpected '[' in "["

Can you help for how to get it run? Thanks