Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haskell guest bindings generator #979

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ wit-bindgen-teavm-java = { path = 'crates/teavm-java', version = '0.26.0' }
wit-bindgen-go = { path = 'crates/go', version = '0.26.0' }
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.26.0' }
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.26.0' }
wit-bindgen-haskell = { path = 'crates/haskell', version = '0.26.0' }
wit-bindgen = { path = 'crates/guest-rust', version = '0.26.0', default-features = false }

[[bin]]
Expand All @@ -58,6 +59,7 @@ wit-bindgen-markdown = { workspace = true, features = ['clap'], optional = true
wit-bindgen-teavm-java = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-go = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-csharp = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-haskell = { workspace = true, features = ['clap'], optional = true}
wit-component = { workspace = true }
wasm-encoder = { workspace = true }

Expand All @@ -69,6 +71,7 @@ default = [
'teavm-java',
'go',
'csharp-naot',
'haskell',
]
c = ['dep:wit-bindgen-c']
rust = ['dep:wit-bindgen-rust']
Expand All @@ -78,6 +81,7 @@ go = ['dep:wit-bindgen-go']
csharp = ['dep:wit-bindgen-csharp']
csharp-naot = ['csharp']
csharp-mono = ['csharp']
haskell = ['dep:wit-bindgen-haskell']

[dev-dependencies]
heck = { workspace = true }
Expand Down
23 changes: 23 additions & 0 deletions crates/haskell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "wit-bindgen-haskell"
version.workspace = true
edition.workspace = true
repository = 'https://github.com/bytecodealliance/wit-bindgen'
license = "Apache-2.0 WITH LLVM-exception"
homepage = 'https://github.com/bytecodealliance/wit-bindgen'
description = """
Haskell bindings generator for WIT and the component model, typically used
through the `wit-bindgen-cli` crate.
"""

[lib]
test = false
doctest = false

[dependencies]
wit-bindgen-core = { workspace = true }
wit-parser = { workspace = true }
anyhow = { workspace = true }
heck = { workspace = true }
clap = { workspace = true, optional = true }
indexmap = { workspace = true }
Loading
Loading