haskell-distributed / haskell-distributed/distributed-process

Does not compile with use-mock-network flag

Open
#432 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

network-transport-tcp
Dominant language
Haskell
Stars
751
Forks
99
Avg merge
45m
Merged PRs (30d)
2

Description

The current master commit 27e58732 does not compile with the use-mock-network flag:

$ cabal test 
Preprocessing library network-transport-tcp-0.5.1...
[1 of 4] Compiling Network.Transport.TCP.Mock.Socket ( src/Network/Transport/TCP/Mock/Socket.hs, dist/build/Network/Transport/TCP/Mock/Socket.o )
[2 of 4] Compiling Network.Transport.TCP.Mock.Socket.ByteString ( src/Network/Transport/TCP/Mock/Socket/ByteString.hs, dist/build/Network/Transport/TCP/Mock/Socket/ByteString.o ) [Network.Transport.TCP.Mock.Socket changed]
[3 of 4] Compiling Network.Transport.TCP.Internal ( src/Network/Transport/TCP/Internal.hs, dist/build/Network/Transport/TCP/Internal.o )

src/Network/Transport/TCP/Internal.hs:57:5: error:
    Module
    ‘Network.Transport.TCP.Mock.Socket’
    does not export
    ‘socketPort’

src/Network/Transport/TCP/Internal.hs:59:5: error:
    Module
    ‘Network.Transport.TCP.Mock.Socket’
    does not export
    ‘ShutdownCmd(ShutdownBoth)’

src/Network/Transport/TCP/Internal.hs:61:5: error:
    Module
    ‘Network.Transport.TCP.Mock.Socket’
    does not export
    ‘inet_ntoa’

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/Network/Transport/TCP/Internal.hs and src/Network/Transport/TCP/Mock/Socket.hs, comparing the imports in Internal with the exports provided by the mock socket module. Run cabal test with the use-mock-network flag and confirm that the library compiles without the reported missing-export errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
distributed-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.