Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix javascript build #327

Closed
bgamari opened this issue Sep 29, 2024 · 2 comments · Fixed by #329
Closed

Fix javascript build #327

bgamari opened this issue Sep 29, 2024 · 2 comments · Fixed by #329

Comments

@bgamari
Copy link
Contributor

bgamari commented Sep 29, 2024

Currently master is not buildable with the Javascript backend due to

libraries/process/System/Process/CommunicationHandle/Internal.hsc:26:8: error: [GHC-87110]
    Could not load module ‘System.Posix’.
    It is a member of the hidden package ‘unix-2.8.4.0’.
    Use -v to see a list of the files searched for.
   |
26 | import Control.Exception (catch, throwIO)
   |        ^^^^^^^^^^^^
@bgamari
Copy link
Contributor Author

bgamari commented Sep 29, 2024

In particular, the problematic imports are

import System.Posix
  ( Fd(..)
  , FdOption(..), setFdOption
  )
import System.Posix.Internals
  ( fdGetMode )

@bgamari
Copy link
Contributor Author

bgamari commented Sep 29, 2024

It looks like setFdOption is available with the Javascript backend. Consequently I believe simply adding a unix dependency should resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant