Skip to content

Fix javascript build #327

Description

@bgamari

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)
   |        ^^^^^^^^^^^^

Activity

  1. bgamari commented on Sep 29, 2024

    @bgamari
    ContributorAuthor

    In particular, the problematic imports are

    import System.Posix
      ( Fd(..)
      , FdOption(..), setFdOption
      )
    import System.Posix.Internals
      ( fdGetMode )
  2. bgamari commented on Sep 29, 2024

    @bgamari
    ContributorAuthor

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

  3. added a commit that references this issue on Sep 29, 2024
    b042c5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions