hs2js test

This commit is contained in:
Felix Roos 2024-05-17 09:09:31 +02:00
parent 29598d1744
commit ed506cabb5
3 changed files with 22 additions and 0 deletions

View 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>