Files
Adrian Herrera d3977ca68b Updates to Haskell bindings (#253)
* [haskell] Style fixes

No changes to functionality

* [haskell] Updated `assemble` function

assemble now takes a list of strings, rather than a single semicolon or newline -delimited string. This is more "Haskell-ish".

* [haskell] More style fixes
2016-11-01 00:47:47 +08:00
..
2016-11-01 00:47:47 +08:00
2016-06-06 00:07:47 +10:00
2016-11-01 00:47:47 +08:00
2016-06-06 00:07:47 +10:00

This documentation explains how to install the Keystone Haskell bindings from source.

  1. Install the core Keystone Assembler as a dependency:

    Follow docs/COMPILE.md in the root directory to compile & install the core.

  2. Change into the Haskell bindings directory, build and install:

$ cd bindings/haskell $ cabal install


If you are installing into a sandbox, run `cabal sandbox init` before
installing Keystone's dependencies.

If the build fails, install c2hs manually `cabal install c2hs` (note that this
will probably also require you to run `cabal install alex` and `cabal install
happy` as well). If you are NOT using a sandbox, ensure that `$HOME/.cabal/bin`
is on your PATH.

To build a sample (after having built and installed the Haskell bindings):

$ cd bindings/haskell $ ghc --make samples/Sample.hs