unicorn/bindings/haskell
Adrian Herrera 0a3f83a20c Small changes to align with hapstone (Haskell bindings for Capstone)
Enums now derive bounded and made use of Applicative in Utils module
2016-04-09 00:13:25 +10:00
..
samples Small formatting fix 2016-04-08 23:31:13 +10:00
src Small changes to align with hapstone (Haskell bindings for Capstone) 2016-04-09 00:13:25 +10:00
.gitignore haskell: update .gitignore 2016-04-08 17:33:11 +08:00
README.TXT On second thought, you only really need to run cabal install, and that will run all the other intermediate steps for you... 2016-04-08 19:55:29 +10:00
Setup.hs Haskell bindings 2016-04-06 09:21:36 +10:00
unicorn.cabal Haskell bindings 2016-04-06 09:21:36 +10:00

This documentation explains how to install Haskell binding for Unicorn
from source.


0. Install the core engine as dependency

   Follow README in the root directory to compile & install the core.

   On *nix, this can simply be done by (project root directory):

        $ sudo ./make.sh install


1. Change directories into the Haskell bindings, build and install

    $ cd bindings/haskell
    $ cabal install


If you are installing into a sandbox, run `cabal sandbox init` before
installing Unicorn'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/SampleArm.hs