Skip to content

m4lvin/sylvan-haskell-example

Repository files navigation

Sylvan Haskell Example

A toy example showing how to get started with the Haskell bindings for Sylvan.

Usage

  1. Install dependencies:

    sudo apt install hwloc libhwloc-dev libgmp-dev
    
  2. Get, compile and install Sylvan: make sylvan-clone-patch-make-install

    Note that this will use sudo at the end to install the library globally, for example placing libsylvan.a into /usr/local/lib/ which is therefore mentioned in the stack.yaml file here.

  3. Compile the Haskell code: stack build

  4. Run it: stack exec sylvan-haskell-example

Notes

  • Currently this example only works with Sylvan 1.0.0. To update, the Haskell bindings have to be updated first. Note that the Sylvan changelog says for version 1.7.0 "Support for Sylvan as a shared library is removed."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published