File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed
Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 1- This documentation explains how to install the Keystone Haskell bindings from
2- source.
3-
1+ # Keystone Haskell bindings
2+ ## Building
431 . Install the core Keystone Assembler as a dependency:
54
65 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):
2524$ cd bindings/haskell
2625$ ghc --make samples/Sample.hs
2726```
27+
28+ ## Using as a dependency
29+ ### In a Cabal project
30+ Add the following to the ` cabal.project ` file in the project root:
31+
32+ ``` text
33+ source-repository-package
34+ type: git
35+ location: https://github.com/keystone-engine/keystone
36+ subdir:
37+ bindings/haskell
38+ tag: master
39+
40+ -- if the file didn't already exist, add the following also
41+ packages: .
42+ ```
43+
44+ ### In a Stack project
45+ Add the following to the ` stack.yaml ` file in the project root:
46+
47+ ``` yaml
48+ extra-deps :
49+ - git : https://github.com/keystone-engine/keystone
50+ subdir : bindings/haskell
51+ ` ` `
You can’t perform that action at this time.
0 commit comments