Skip to content

Build failure on Windows (CI broken) #574

Description

@andreasabel

-- This function does not work on Windows.
recvFd :: Socket -> IO CInt
recvFd s = allocaBytes dummyBufSize $ \buf -> do
(NullSockAddr, _, cmsgs, _) <- recvBufMsg s [(buf,dummyBufSize)] 32 mempty
case (lookupCmsg CmsgIdFds cmsgs >>= decodeCmsg) :: Maybe [Fd] of

Network\Socket\Unix.hsc:152:22: error:
    Data constructor not in scope: CmsgIdFds :: CmsgId
    Suggested fix:
      Perhaps use ‘CmsgIdFd’ (imported from Network.Socket.Win32.Cmsg)
    |
152 |     case (lookupCmsg CmsgIdFds cmsgs >>= decodeCmsg) :: Maybe [Fd] of

    |                      ^^^^^^^^^

In CI: https://github.com/haskell/network/actions/runs/8386827442/job/22967896871?pr=573#step:9:126

The first bad CI run was: https://github.com/haskell/network/actions/runs/5779705020
Breakage seem to be connected to

Activity

  1. andreasabel commented on Mar 25, 2024

    @andreasabel
    MemberAuthor

    Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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