Merge pull request #524 from raehik/bindings-haskell-build-fix-include

Haskell bindings: fix sdist generation/pkg install
This commit is contained in:
lazymio
2023-05-20 00:01:25 +02:00
committed by GitHub
2 changed files with 30 additions and 4 deletions
+27 -3
View File
@@ -1,6 +1,5 @@
This documentation explains how to install the Keystone Haskell bindings from
source.
# Keystone Haskell bindings
## Building
1. Install the core Keystone Assembler as a dependency:
Follow docs/COMPILE.md in the root directory to compile & install the core.
@@ -25,3 +24,28 @@ To build a sample (after having built and installed the Haskell bindings):
$ cd bindings/haskell
$ ghc --make samples/Sample.hs
```
## Using as a dependency
### In a Cabal project
Add the following to the `cabal.project` file in the project root:
```text
source-repository-package
type: git
location: https://github.com/keystone-engine/keystone
subdir:
bindings/haskell
tag: master
-- if the file didn't already exist, add the following also
packages: .
```
### In a Stack project
Add the following to the `stack.yaml` file in the project root:
```yaml
extra-deps:
- git: https://github.com/keystone-engine/keystone
subdir: bindings/haskell
```
+3 -1
View File
@@ -2,7 +2,7 @@
-- documentation, see http://haskell.org/cabal/users-guide/
name: keystone
version: 0.1.0.0
version: 0.1.1.0
synopsis: Keystone lightweight multi-platform, multi-architecture assembler framework
description: Haskell bindings for the Keystone assembler
homepage: https://github.com/keystone-engine/keystone
@@ -12,6 +12,8 @@ category: System
build-type: Simple
cabal-version: >= 1.10
extra-source-files: src/include/*.h
library
exposed-modules: Keystone.Internal.Core
Keystone.Internal.Keystone