Seamlessly call R from Haskell and vice versa. No FFI required.

Version on this page:
LTS Haskell 22.29:1.0.1
Stackage Nightly 2023-12-26:1.0.1
Latest on Hackage:1.0.1

See all snapshots inline-r appears in

BSD-3-Clause licensed by Mathieu Boespflug, Facundo Dominguez, Alexander Vershilov
Maintained by Mathieu Boespflug
This version can be pinned in stack with:inline-r-,7795

For up to date Haddock documentation, please see


Change Log - 2016-10-23

  • Fix build on ghc-8.2.
  • Introduce Matcher API.

0.9.0 - 2016-06-20

  • Breaking change: Rewrite of the H.Prelude module API.
  • Reexport more modules from Language.R.
  • Windows support for inline-r and H.
  • Partially move away from c2hs internally: too many bugs on Windows.
  • Export PrintR type class.
  • Loosen the constraints of a few HExp constructors.
  • Deprecate parseFile, parseText, string and strings.

0.8.0 - 2016-01-24


  • Rewritten R quasiquoter. Compile times now much faster than before for large quasiquotes.
  • Assignments are now local by default. Use <<- to assign in global environment.


  • vector-0.11 compatibility.
  • Included in LTS-5.
  • Vectors can now be sliced starting from arbitrary indexes. Slices were previously restricted to 0-based slices.


  • Memory tests are now –enable-strict-barrier clean.
  • Remove memory leak when allocating new vectors via Data.Vector.SEXP API. - 2015-12-08

  • Skip R’s own signal handlers during init. They would otherwise interfere with signal delivery e.g. regarding socket conditions.
  • stack –nix support. - 2015-11-24

  • OS X El Capitan support. - 2015-09-14

  • Fix vector copying. - 2015-09-07

  • First public release.