A PureScript interpreter with a Haskell FFI.
Dovetail is a general-purpose PureScript corefn interpreter with an FFI to Haskell. Please see the README on GitHub at https://github.com/paf31/dovetail#readme, or check out the examples directory, to learn how to use the library.
Dovetail
Dovetail is a general-purpose PureScript interpreter written in Haskell.
It has excellent support for interop with Haskell code via PureScript's foreign function interface, along with a high-level Haskell API for integrating such code.
As such, it is possible to write low-level or domain-specific code in Haskell, and then to write the "glue code" in PureScript. In this way, Dovetail is a tool for reusing the frontend of the PureScript compiler (its syntax and type checker) to build domain specific languages in Haskell.
Getting Started
To understand the library and how to use it, it is recommended that you read through the Haddock documentation, alongside the provided examples:
- Hackage documentation
- Examples:
You can build the code and examples in this repository using stack build
, and run the test suite with stack test
.