hs2js test
This commit is contained in:
parent
29598d1744
commit
ed506cabb5
3 changed files with 22 additions and 0 deletions
8
examples/buildless/hs2js.html
Normal file
8
examples/buildless/hs2js.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<script src="https://unpkg.com/hs2js@0.0.3"></script>
|
||||
<script>
|
||||
hs2js.setBase('https://unpkg.com/hs2js@0.0.3/dist/');
|
||||
document.addEventListener('click', async () => {
|
||||
window.log = (s) => console.log(s);
|
||||
await hs2js.evaluate('log "hello from haskell!"');
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue