Open NCrashed opened 3 years ago
Let me ask two questions:
network
available for GHCJS? I found ghcjs_HOST_OS
in network
. I'm wondering.Isn't network available for GHCJS? I found ghcjs_HOST_OS in network. I'm wondering.
Nope. network
used to be compiled with GHCJS until version 2.8
but it never was truly supported (it will throw exceptions on any runtime call). See https://github.com/ghcjs/ghcjs/issues/305. Recent versions of network won't even compile with js backend.
Why does this issue come up recently?
So, > 2.8
versions of network don't build, but older ones are buildable. Also, there are no so many users of GHCJS. So, I get used to find and work around such issues with packages that are useful on client side but depends on things that are buildable only on server side.
P.S. We can make network buildable with GHCJS again as possible solution.
@NCrashed
We can make network buildable with GHCJS again as possible solution.
Yes, please. I'm not sure that I understand the problem correctly. But if "ReferenceError: h$getprotobyname" is the source of the problem, adding #ifdef
is good enough. Would you send a PR?
Fail to compile with GHCJS due
network
dependency. Possible workaround is cabal flag that disables parts that are depend on network package.Log: