Javascript bindings for the Dfinity Haskell to WebAssembly compiler.
Compiled via GHCJS.
npm install dhc
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 ='
All code and designs are open sourced under GPL V3.