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

Implement codecs for pair and triple #270

Closed
chshersh opened this issue May 15, 2020 · 0 comments · Fixed by #274
Closed

Implement codecs for pair and triple #270

chshersh opened this issue May 15, 2020 · 0 comments · Fixed by #274
Assignees
Labels
codec Conversion between TOML and custom user data types

Comments

@chshersh
Copy link
Contributor

When writing codecs for sum types, you often deal with tuples. So it would be good to have a few helper codecs:

pair :: TomlCodec a -> TomlCodec b -> TomlCodec (a, b)
triple :: TomlCodec a -> TomlCodec b -> TomlCodec c -> (a, b, c)
@chshersh chshersh added the codec Conversion between TOML and custom user data types label May 15, 2020
@chshersh chshersh added this to the v1.3.0.0: Big update milestone May 15, 2020
@vrom911 vrom911 self-assigned this May 15, 2020
vrom911 added a commit that referenced this issue May 15, 2020
chshersh pushed a commit that referenced this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codec Conversion between TOML and custom user data types
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants