tomjaguarpaw / product-profunctors

Other
19 stars 14 forks source link

Building with new js backend currently fails #71

Open tysonzero opened 5 months ago

tysonzero commented 5 months ago

The error message is:

[ 5 of 13] Compiling Data.Profunctor.Product.Tuples ( Data/Profunctor/Product/Tuples.hs, dist/build/Data/Profunctor/Product/Tuples.o )

<no location info>: error:
    node: createProcess: posix_spawnp: does not exist (No such file or directory)
[ 6 of 13] Compiling Data.Profunctor.Product.Flatten ( Data/Profunctor/Product/Flatten.hs, dist/build/Data/Profunctor/Product/Flatten.o )

<no location info>: error:
    node: createProcess: posix_spawnp: does not exist (No such file or directory)

This isn't super urgent in my case, as the workaround is only building product-profunctors with the native backend and adding -fno-warn-orphans to the cabal file so that I can call makeAdaptorAndInstance in a separate module to the shared types file. Just figured I'd put it on your radar.

tomjaguarpaw commented 5 months ago

Huh, what's going on there? Is it trying to spawn a new process to run TH? What is one supposed to do in such cases? Maybe you're supposed to have node installed?

tysonzero commented 5 months ago

Ah yes I didn't even realize this could be the first TH that the js backend has encountered in my project. For some reason I thought TH worked, but yeah we can probably just assume this is a TH-support issue and close this.