mirror of
https://github.com/keystone-engine/keystone.git
synced 2026-10-12 02:17:10 +00:00
Merge pull request #524 from raehik/bindings-haskell-build-fix-include
Haskell bindings: fix sdist generation/pkg install
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user