mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 15:38:18 +00:00
74aaf3b321
These Haskell bindings make large use of c2hs to generate much of the code, so Unicorn's const_generator is not used. The emulator is based on the Either monad transformer. The IO monad is used to run the underlying Unicorn library, while the Either monad is used to handle errors. Instructions on how to build the bindings are located in bindings/haskell/README.TXT. The same samples found in samples/ can be found in bindings/haskell/samples. They should produce the same output, with slight differences in their error handling and messaging.
21 lines
556 B
Text
21 lines
556 B
Text
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 build
|
|
$ cabal install
|
|
|
|
If the build fails, try installing c2hs manually (cabal install c2hs) and make
|
|
sure that $HOME/.cabal/bin is on your PATH.
|