Are you aware of GHCJS, Haskell-to-JS, compiler? In the new and rather popular &quot;build&#x2F;dependency manager&quot;[1] for Haskell, named Stack, you can now quite easily install this compiler.<p>And I think it is only a matter of time till someone writes a Swift-to-JS compiler (Apple might already have it on it&#x27;s radar).<p>[1]: I know it is not a &quot;build&#x2F;dependency manager&quot;, but I don&#x27;t know how to call better in for sake of this discussion.