Skip to content

Javascript bindings for the Dfinity Haskell to WebAssembly compiler

Notifications You must be signed in to change notification settings

dfinity-side-projects/dhc-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Javascript bindings for the Dfinity Haskell to WebAssembly compiler.

Compiled via GHCJS.

Installation

npm install dhc

Usage

const dhc = require('dhc')

const output = dhc.compileHsToWasm('main = putStr "Hello"')
// [ 0, 97, 115, 109, ... ]

const err = dhc.compileHsToWasm('syntax error')
// '(line 1, column 13):\nunexpected end of input\nexpecting " ", "\\r\\n", "--" or end of input\nexpected ='

License

(C) 2018 DFINITY STIFTUNG

All code and designs are open sourced under GPL V3.

image

About

Javascript bindings for the Dfinity Haskell to WebAssembly compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published