haskell-distributed / haskell-distributed/distributed-process

[NT-6] Serialize instance for EndpointAddress

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

Nobody has claimed this yet.

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

Description

[Imported from JIRA. Reported by Rob Stewart @robstewartuk) as NT-6 on 2013-03-15 20:01:46]
There is an instance for Binary from the binary package, for EndPointAddress:
https://github.com/haskell-distributed/network-transport/blob/master/src/Network/Transport.hs#L132

It would be good to also have an instance for Serialize, for those users who use the cereal package for binary serialization. I might offer a merge request if I get time to do it and test it.

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 the existing Binary instance for EndpointAddress in src/Network/Transport.hs around line 132, then locate the corresponding serialization code in this repository. Check how cereal Serialize instances are defined and tested elsewhere. Done means EndpointAddress also supports Serialize with tests covering its serialization behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.