Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 72805af

Browse files
authored
Update to support version_94 (#12)
1 parent 4229ae8 commit 72805af

File tree

15 files changed

+130
-43
lines changed

15 files changed

+130
-43
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/settings.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
repository:
2+
has_wiki: false
3+
4+
labels:
5+
- name: "duplicate"
6+
color: cfd3d7
7+
- name: "good first issue"
8+
color: 7057ff
9+
- name: "invalid"
10+
color: cfd3d7
11+
- name: "more data needed"
12+
color: bfdadc
13+
- name: "P0"
14+
color: b60205
15+
description: "blocker: fix immediately!"
16+
- name: "P1"
17+
color: d93f0b
18+
description: "critical: next release"
19+
- name: "P2"
20+
color: e99695
21+
description: "major: an upcoming release"
22+
- name: "P3"
23+
color: fbca04
24+
description: "minor: not priorized"
25+
- name: "P4"
26+
color: fef2c0
27+
description: "unimportant: consider wontfix or other priority"
28+
- name: "question"
29+
color: d876e3
30+
- name: "type: bug"
31+
color: 0052cc
32+
- name: "type: documentation"
33+
color: 0052cc
34+
- name: "type: feature request"
35+
color: 0052cc
36+
- name: "wontfix"
37+
color: ffffff
38+
- name: "merge-queue"
39+
color: 0e8a16
40+
description: "merge on green CI"

.github/workflows/pipeline.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: pipeline
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
9+
build:
10+
name: build
11+
runs-on: ubuntu-20.04
12+
steps:
13+
14+
- uses: cachix/install-nix-action@v10
15+
with:
16+
skip_adding_nixpkgs_channel: true
17+
18+
- name: checkout
19+
uses: actions/checkout@v2
20+
21+
- name: build
22+
run: |
23+
mkdir ~/.stack
24+
printf "nix:\n enable: true\n" > ~/.stack/config.yaml
25+
26+
nix-shell --pure --run "stack test"
27+
28+
sdist:
29+
name: sdist
30+
runs-on: ubuntu-20.04
31+
steps:
32+
33+
- uses: cachix/install-nix-action@v10
34+
with:
35+
skip_adding_nixpkgs_channel: true
36+
37+
- name: checkout
38+
uses: actions/checkout@v2
39+
40+
- name: sdist
41+
run: |
42+
nix-shell --pure --run "cabal check && cabal v2-sdist all"
43+
44+
- name: upload-artifact
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: sdist
48+
path: dist-newstyle/sdist/*.tar.gz
49+
50+
haddock:
51+
name: haddock
52+
runs-on: ubuntu-20.04
53+
steps:
54+
55+
- uses: cachix/install-nix-action@v10
56+
with:
57+
skip_adding_nixpkgs_channel: true
58+
59+
- name: checkout
60+
uses: actions/checkout@v2
61+
62+
- name: haddock
63+
run: |
64+
nix-shell --pure --run "cabal v2-haddock --haddock-for-hackage --haddock-hyperlink-source --haddock-quickjump all"
65+
66+
- name: upload-artifact
67+
uses: actions/upload-artifact@v2
68+
with:
69+
name: haddock
70+
path: dist-newstyle/*-docs.tar.gz

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.stack-work
2+
dist-newstyle
3+
stack.yaml.lock

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ it's no less than the minimum version listed below.
1818
| Haskell bindings version | Minimum Binaryen version |
1919
|--------------------------|--------------------------|
2020
| 0.0.1.* | version_91 |
21+
|--------------------------|--------------------------|
22+
| 0.0.2.* | version_94 |
2123

2224

2325
## How to build

binaryen.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 251c6e574c5ec09d1d10b696369cf63c067062fe0a5765714a59ed52207d0c15
7+
-- hash: f6057bbdb94c86826246804c0ebc4e4201ba42f10aef683bb852f11dfd961045
88

99
name: binaryen
10-
version: 0.0.1.1
10+
version: 0.0.2.0
1111
synopsis: Haskell bindings to binaryen
1212
description: Haskell bindings to [binaryen](https://github.com/WebAssembly/binaryen). Provides complete bindings to the C API, which can be useful for building WebAssembly toolchains in Haskell.
1313
category: Compiler
1414
homepage: https://github.com/tweag/haskell-binaryen#readme
1515
bug-reports: https://github.com/tweag/haskell-binaryen/issues
16-
maintainer: Shao Cheng <cheng.shao@tweag.io>
16+
maintainer: Cheng Shao <cheng.shao@tweag.io>
1717
copyright: (c) 2018 Tweag I/O
1818
license: BSD3
1919
license-file: LICENSE

nixpkgs.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
let
2-
# 2020-04-03
3-
rev = "4dc8447c55fe5262bad1019121a8e6d3f9e1e71f";
4-
sha256 = "113961iip25h3visfpszrnvwwclkvkgj4x9c7inlh90vcfrk325p";
2+
rev = "4855aa62fa13052fb1a3daea68971503ab07a744";
3+
sha256 = "17sk264qw397zzw12x11ry5vj9qidgbmjsyj544ysg857b4qq9sj";
54
in
65
import (fetchTarball {
76
inherit sha256;

package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: binaryen
2-
version: 0.0.1.1
2+
version: 0.0.2.0
33
synopsis: Haskell bindings to binaryen
44
description: Haskell bindings to [binaryen](https://github.com/WebAssembly/binaryen). Provides complete bindings to the C API, which can be useful for building WebAssembly toolchains in Haskell.
55
category: Compiler
6-
maintainer: Shao Cheng <cheng.shao@tweag.io>
6+
maintainer: Cheng Shao <cheng.shao@tweag.io>
77
copyright: (c) 2018 Tweag I/O
88
license: BSD3
99
github: tweag/haskell-binaryen

shell.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ with pkgs;
44

55
mkShell {
66
name = "haskell-binaryen";
7-
buildInputs = [ nix stack ];
7+
buildInputs = [
8+
binaryen
9+
cabal-install
10+
haskell.compiler.ghc8101
11+
nix
12+
stack
13+
];
814
}

src/Binaryen.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ foreign import ccall unsafe "BinaryenSetOneCallerInlineMaxSize"
111111
setOneCallerInlineMaxSize ::
112112
Index -> IO ()
113113

114-
foreign import ccall unsafe "BinaryenSetAPITracing"
115-
setAPITracing ::
116-
CInt -> IO ()
117-
118114
foreign import ccall unsafe "BinaryenSetColorsEnabled"
119115
setColorsEnabled ::
120116
CInt -> IO ()

0 commit comments

Comments
 (0)