I cannot run the example code. Am I missing something or is there an incompatibility with Purescript version 0.11.6?
To reproduce:
Create a new project with pulp init && bower install purescript-phoenix
Copy the example code into src/Main.purs.
When trying to run the example with pulp run I get the unexpected output
...
Compiling Phoenix
Compiling Main
Compiling Data.Map.Gen
* Build successful.
1. Creating
/home/maarten/Purescript/hello/output/Phoenix/foreign.js:5
return new window.Phoenix.Socket(endpoint, options);
^
ReferenceError: window is not defined
at /home/maarten/Purescript/hello/output/Phoenix/foreign.js:5:18
at Object.__do [as main] (/home/maarten/Purescript/hello/output/Main/index.js:64:212)
at Object.<anonymous> (/tmp/pulp-run117630-6785-zn62c0.vc4s.js:1:79)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
* ERROR: Subcommand terminated with exit code 1