-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Currently various from.../to... functions work with just [Int]. I'd suggest to:
- Return appropriate data types, that is
Word8forto/fromIPv4andto/fromIPv6b, andWord16forto/fromIPv6. - Add variants for
from/toIPv6andfrom/toIPv4that take/return 4-tuples and 8-tuples instead of lists. This is safer, and it's still possible to efficiently work with such tuples by wrapping them for example withNTup4/NTup8which provideTraversable,Applicativeetc.
I'll be happy to contribute, if we agree on this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels