Hacker News new | ask | show | jobs
by avital 4807 days ago
Can acid-state be ported to Javascript?
2 comments

Maybe but it does not seem very obvious to do so to me.. I guess one is better off with using JS's localStorage from Fay[1] or Sunroof[2].

1. http://fay-lang.org

2. https://github.com/ku-fpg/sunroof-compiler/wiki/Tutorial

you could try cross-compiling it with Fay or UHC (haskell to javascript compilers)
You'd probably need one of the more heavyweight options (e.g. GHCJS). Fay doesn't understand typeclasses afaik, so it's not really suitable for porting haskell libraries verbatim to the browser.