tests/testthat/examples/knitr-examples/026-engine-haskell.md

Does Haskell work with knitr?

Note we have to specify the compiler manually, e.g. engine.path='ghc' (haskell itself may not exist as an executable program).

[x | x <- [1..10], odd x]
## [1,3,5,7,9]


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.