I have stumbled upon this project called ghcjs
It seems promising!
Quote from the README
:
Haskell to Javascript translator
Project aims to provide solution to
- compile modern Haskell libraries to Javascript files and use
them in Ajax applications or
- develop entire Ajax application in Haskell language
Previous version of project is located at vir.mskhug.ru.