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

Refinement for scodec? #276

Open
TobiasRoland opened this issue Oct 7, 2024 · 2 comments
Open

Refinement for scodec? #276

TobiasRoland opened this issue Oct 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TobiasRoland
Copy link

TobiasRoland commented Oct 7, 2024

Is your feature request related to a problem? Please describe.
It is! I would like to use scodec with iron, in the same way that I can with scodec-refined

Describe the solution you'd like
refinement types for Byte... and BitVector from scodec to limit e.g. a ByteVector to 3 bytes

Describe alternatives you've considered
Refined - see refined-scodec part of project


I'd potentially be interested in taking a crack at this myself, if there's interest?

@TobiasRoland TobiasRoland added the enhancement New feature or request label Oct 7, 2024
@Iltotore
Copy link
Owner

Iltotore commented Oct 10, 2024

Hello.

I'd potentially be interested in taking a crack at this myself, if there's interest?

I've seen such interest for ByteVector etc. constraints in some places I worked at. Sure you can tackle this issue if you want!

@TobiasRoland
Copy link
Author

I'll give it a whirl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants