Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
I was able to make PS compile using GHCJS using custom wrapper - given
main = do
(ws, out) <- compileTextToJS "module Main where\nmain = let f x = f x in f 1"
either printErrors T.putStrLn out
as entry-point of GHCJS app, I get:
All in browser!
Now I need to figure out multi-module compilation (and thus access to Prelude and stuff) and some UI other that output in console :big_smile:
quick, register psfiddle.net (cf. https://jsfiddle.net/)
It already is registered by someone, it just doesn't work :big_smile: - https://psfiddle.net/
Putting current state here: https://github.com/thematten/purjs
Oh my god I finally understand what you're doing. I was thinking you were compiling purescript code to js using GHCJS instead of purs and I didn't understand why :laughing: