Y
Hacker News
new
|
ask
|
show
|
jobs
by
avital
4807 days ago
Can acid-state be ported to Javascript?
2 comments
cies
4807 days ago
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
link
arianvanp
4807 days ago
you could try cross-compiling it with Fay or UHC (haskell to javascript compilers)
link
boothead
4807 days ago
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.
link
1. http://fay-lang.org
2. https://github.com/ku-fpg/sunroof-compiler/wiki/Tutorial