hs2js.html9 lines · 311 B · raw
1<script src="https://unpkg.com/hs2js@0.0.4"></script>
2<button id="hello">hello</button>
3<script>
4  hs2js.setBase('https://unpkg.com/hs2js@0.0.4/dist/');
5  hs2js.loadParser();
6  document.getElementById('hello').addEventListener('click', () => {
7    hs2js.evaluate('alert "hello from haskell!"');
8  });
9</script>