7 ms·
Can acid-state be ported to Javascript?
by avital 13y ago
Can acid-state be ported to Javascript?
- arianvanp 13y agoyou could try cross-compiling it with Fay or UHC (haskell to javascript compilers)
- boothead 13y agoYou'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.
- cies 13y agoMaybe 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 http://fay-lang.org 2. https://github.com/ku-fpg/sunroof-compiler/wiki/Tutorial https://github.com/ku-fpg/sunroof-compiler/wiki/Tutorial