@hackage heystone0.1.0

Haskell bindings for the Keystone assembler framework

Heystone - Haskell bindings for the Keystone assembler framework

Haskell bindings for Keystone, a powerful multi-architecture assembler framework.

This package is derived from the Haskell bindings at keystone-engine/keystone, which at the time were highly usable but unmaintained and never uploaded to Hackage. To not obstruct a potential future official package (and to give myself flexibility), I'm appropriating Hapstone's naming convention.

Usage

Specify as a dependency in your Cabal file (or Stack, but you'll have to register it as an extra-dep).

You will need the Keystone engine installed. It's not packaged on many systems, so you many wish to check the Keystone docs for instructions. For my fellow Arch Linux fiends, it's in the main repos:

pacman -S keystone

Examples

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

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