Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .buildkite/pipeline.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
repository:
has_wiki: false

labels:
- name: "duplicate"
color: cfd3d7
- name: "good first issue"
color: 7057ff
- name: "invalid"
color: cfd3d7
- name: "more data needed"
color: bfdadc
- name: "P0"
color: b60205
description: "blocker: fix immediately!"
- name: "P1"
color: d93f0b
description: "critical: next release"
- name: "P2"
color: e99695
description: "major: an upcoming release"
- name: "P3"
color: fbca04
description: "minor: not priorized"
- name: "P4"
color: fef2c0
description: "unimportant: consider wontfix or other priority"
- name: "question"
color: d876e3
- name: "type: bug"
color: 0052cc
- name: "type: documentation"
color: 0052cc
- name: "type: feature request"
color: 0052cc
- name: "wontfix"
color: ffffff
- name: "merge-queue"
color: 0e8a16
description: "merge on green CI"
70 changes: 70 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: pipeline

on:
- push
- pull_request

jobs:

build:
name: build
runs-on: ubuntu-20.04
steps:

- uses: cachix/install-nix-action@v10
with:
skip_adding_nixpkgs_channel: true

- name: checkout
uses: actions/checkout@v2

- name: build
run: |
mkdir ~/.stack
printf "nix:\n enable: true\n" > ~/.stack/config.yaml

nix-shell --pure --run "stack test"

sdist:
name: sdist
runs-on: ubuntu-20.04
steps:

- uses: cachix/install-nix-action@v10
with:
skip_adding_nixpkgs_channel: true

- name: checkout
uses: actions/checkout@v2

- name: sdist
run: |
nix-shell --pure --run "cabal check && cabal v2-sdist all"

- name: upload-artifact
uses: actions/upload-artifact@v2
with:
name: sdist
path: dist-newstyle/sdist/*.tar.gz

haddock:
name: haddock
runs-on: ubuntu-20.04
steps:

- uses: cachix/install-nix-action@v10
with:
skip_adding_nixpkgs_channel: true

- name: checkout
uses: actions/checkout@v2

- name: haddock
run: |
nix-shell --pure --run "cabal v2-haddock --haddock-for-hackage --haddock-hyperlink-source --haddock-quickjump all"

- name: upload-artifact
uses: actions/upload-artifact@v2
with:
name: haddock
path: dist-newstyle/*-docs.tar.gz
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.stack-work
dist-newstyle
stack.yaml.lock
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ it's no less than the minimum version listed below.
| Haskell bindings version | Minimum Binaryen version |
|--------------------------|--------------------------|
| 0.0.1.* | version_91 |
|--------------------------|--------------------------|
| 0.0.2.* | version_94 |


## How to build
Expand Down
6 changes: 3 additions & 3 deletions binaryen.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 251c6e574c5ec09d1d10b696369cf63c067062fe0a5765714a59ed52207d0c15
-- hash: f6057bbdb94c86826246804c0ebc4e4201ba42f10aef683bb852f11dfd961045

name: binaryen
version: 0.0.1.1
version: 0.0.2.0
synopsis: Haskell bindings to binaryen
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.
category: Compiler
homepage: https://github.com/tweag/haskell-binaryen#readme
bug-reports: https://github.com/tweag/haskell-binaryen/issues
maintainer: Shao Cheng <cheng.shao@tweag.io>
maintainer: Cheng Shao <cheng.shao@tweag.io>
copyright: (c) 2018 Tweag I/O
license: BSD3
license-file: LICENSE
Expand Down
5 changes: 2 additions & 3 deletions nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
let
# 2020-04-03
rev = "4dc8447c55fe5262bad1019121a8e6d3f9e1e71f";
sha256 = "113961iip25h3visfpszrnvwwclkvkgj4x9c7inlh90vcfrk325p";
rev = "4855aa62fa13052fb1a3daea68971503ab07a744";
sha256 = "17sk264qw397zzw12x11ry5vj9qidgbmjsyj544ysg857b4qq9sj";
in
import (fetchTarball {
inherit sha256;
Expand Down
4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: binaryen
version: 0.0.1.1
version: 0.0.2.0
synopsis: Haskell bindings to binaryen
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.
category: Compiler
maintainer: Shao Cheng <cheng.shao@tweag.io>
maintainer: Cheng Shao <cheng.shao@tweag.io>
copyright: (c) 2018 Tweag I/O
license: BSD3
github: tweag/haskell-binaryen
Expand Down
8 changes: 7 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ with pkgs;

mkShell {
name = "haskell-binaryen";
buildInputs = [ nix stack ];
buildInputs = [
binaryen
cabal-install
haskell.compiler.ghc8101
nix
stack
];
}
4 changes: 0 additions & 4 deletions src/Binaryen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ foreign import ccall unsafe "BinaryenSetOneCallerInlineMaxSize"
setOneCallerInlineMaxSize ::
Index -> IO ()

foreign import ccall unsafe "BinaryenSetAPITracing"
setAPITracing ::
CInt -> IO ()

foreign import ccall unsafe "BinaryenSetColorsEnabled"
setColorsEnabled ::
CInt -> IO ()
Expand Down
10 changes: 0 additions & 10 deletions src/Binaryen/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,6 @@ foreign import ccall unsafe "BinaryenBrOnExn"
Expression ->
IO Expression

foreign import ccall unsafe "BinaryenPush"
push ::
Module ->
Expression ->
IO Expression

foreign import ccall unsafe "BinaryenPop"
pop ::
Module -> Type -> IO Expression
Expand Down Expand Up @@ -934,7 +928,3 @@ foreign import ccall unsafe "BinaryenBrOnExnGetName"
foreign import ccall unsafe "BinaryenBrOnExnGetExnref"
brOnExnGetExnref ::
Expression -> IO Expression

foreign import ccall unsafe "BinaryenPushGetValue"
pushGetValue ::
Expression -> IO Expression
1 change: 0 additions & 1 deletion src/Binaryen/ExpressionId.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ foreign import ccall unsafe "BinaryenTryId" tryId :: ExpressionId
foreign import ccall unsafe "BinaryenThrowId" throwId :: ExpressionId
foreign import ccall unsafe "BinaryenRethrowId" rethrowId :: ExpressionId
foreign import ccall unsafe "BinaryenBrOnExnId" brOnExnId :: ExpressionId
foreign import ccall unsafe "BinaryenPushId" pushId :: ExpressionId
foreign import ccall unsafe "BinaryenPopId" popId :: ExpressionId
2 changes: 1 addition & 1 deletion src/Binaryen/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ foreign import ccall unsafe "BinaryenTypeFloat32" float32 :: Type
foreign import ccall unsafe "BinaryenTypeFloat64" float64 :: Type
foreign import ccall unsafe "BinaryenTypeVec128" vec128 :: Type
foreign import ccall unsafe "BinaryenTypeFuncref" funcref :: Type
foreign import ccall unsafe "BinaryenTypeAnyref" anyref :: Type
foreign import ccall unsafe "BinaryenTypeExternref" externref :: Type
foreign import ccall unsafe "BinaryenTypeNullref" nullref :: Type
foreign import ccall unsafe "BinaryenTypeExnref" exnref :: Type
foreign import ccall unsafe "BinaryenTypeUnreachable" unreachable :: Type
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-15.11
resolver: lts-16.4

nix:
path: [nixpkgs=./nixpkgs.nix]
Expand Down
12 changes: 0 additions & 12 deletions stack.yaml.lock

This file was deleted.