packages feed

binaryen 0.0.1.0 → 0.0.1.1

raw patch · 9 files changed

+24/−16 lines, 9 files

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # CHANGELOG for `binaryen` +## 0.0.1.1++- Fix a runtime error when linking against `version_92` or above due to a+  breaking [change](https://github.com/WebAssembly/binaryen/pull/2745) in+  upstream C API.+ ## 0.0.1.0  - Initial release.
README.md view
@@ -1,10 +1,11 @@ # Haskell bindings for [binaryen][binaryen] -[Binaryen][binaryen] is a compiler and toolchain infrastructure library for-WebAssembly, written in C++. This package defines complete bindings to the-[Binaryen C API][binaryen-api], and can be useful to building WebAssembly-toolchains in Haskell.+[![Build status](https://badge.buildkite.com/f96af58baa5635b8cdef87abddc9070765fa4f562cc6cb8f47.svg?branch=master)](https://buildkite.com/tweag-1/haskell-binaryen) +[Binaryen][binaryen] is a compiler and toolchain infrastructure+library for WebAssembly, written in C++. This package defines+bindings to the [Binaryen API][binaryen-api].+ [binaryen]: https://github.com/WebAssembly/binaryen [binaryen-api]: https://github.com/WebAssembly/binaryen/blob/master/src/binaryen-c.h @@ -16,7 +17,7 @@  | Haskell bindings version | Minimum Binaryen version | |--------------------------|--------------------------|-| 0.0.1.0                  | version_91               |+| 0.0.1.*                  | version_91               |   ## How to build
binaryen.cabal view
@@ -4,15 +4,15 @@ -- -- see: https://github.com/sol/hpack ----- hash: 36ff73cba099e841c7dc59136556f413d3416a42487b5fb1d1cec6c31367ef83+-- hash: 251c6e574c5ec09d1d10b696369cf63c067062fe0a5765714a59ed52207d0c15  name:           binaryen-version:        0.0.1.0+version:        0.0.1.1 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/asterius#readme-bug-reports:    https://github.com/tweag/asterius/issues+homepage:       https://github.com/tweag/haskell-binaryen#readme+bug-reports:    https://github.com/tweag/haskell-binaryen/issues maintainer:     Shao Cheng <cheng.shao@tweag.io> copyright:      (c) 2018 Tweag I/O license:        BSD3@@ -25,7 +25,7 @@  source-repository head   type: git-  location: https://github.com/tweag/asterius+  location: https://github.com/tweag/haskell-binaryen  library   exposed-modules:
src/Binaryen/Event.hs view
@@ -11,7 +11,7 @@  import Binaryen.Type import Foreign (Ptr, Storable)-import Foreign.C (CChar(..), CInt(..))+import Foreign.C (CChar(..), CInt(..), CUIntPtr(..))  newtype Event = Event (Ptr Event)   deriving (Eq, Show, Storable)
src/Binaryen/Expression.hs view
@@ -17,7 +17,7 @@ import Data.Int (Int8, Int32, Int64) import Data.Word (Word32, Word8) import Foreign (Ptr, Storable)-import Foreign.C (CChar(..), CDouble(..), CFloat(..), CInt(..))+import Foreign.C (CChar(..), CDouble(..), CFloat(..), CInt(..), CUIntPtr(..))  newtype Expression = Expression (Ptr Expression)   deriving (Eq, Show, Storable)
src/Binaryen/Function.hs view
@@ -14,7 +14,7 @@ import {-# SOURCE #-} Binaryen.Module import Binaryen.Type import Foreign (Ptr, Storable)-import Foreign.C (CChar(..))+import Foreign.C (CChar(..), CUIntPtr(..))  newtype Function = Function (Ptr Function)   deriving (Eq, Show, Storable)
src/Binaryen/Global.hs view
@@ -12,7 +12,7 @@ import Binaryen.Type import Binaryen.Expression import Foreign (Ptr, Storable)-import Foreign.C (CChar(..), CInt(..))+import Foreign.C (CChar(..), CInt(..), CUIntPtr(..))  newtype Global = Global (Ptr Global)   deriving (Eq, Show, Storable)
src/Binaryen/Module.hs view
@@ -20,7 +20,7 @@ import Data.Int (Int8) import Data.Word (Word8, Word32) import Foreign (Ptr, Storable)-import Foreign.C (CChar(..), CInt(..), CSize(..))+import Foreign.C (CChar(..), CInt(..), CSize(..), CUIntPtr(..))  newtype Module = Module (Ptr Module)   deriving (Eq, Show, Storable)
src/Binaryen/Type.hs view
@@ -11,8 +11,9 @@  import Data.Word (Word32) import Foreign (Ptr, Storable)+import Foreign.C (CUIntPtr(..)) -newtype Type = Type Word32+newtype Type = Type CUIntPtr   deriving (Eq, Show, Storable)  foreign import ccall unsafe "BinaryenTypeNone" none :: Type