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

Combined IPRTable-like type for both IPv4 and IPv6 #40

Open
greydot opened this issue May 17, 2018 · 3 comments
Open

Combined IPRTable-like type for both IPv4 and IPv6 #40

greydot opened this issue May 17, 2018 · 3 comments

Comments

@greydot
Copy link

greydot commented May 17, 2018

We have recently encountered a need for something like that. If it was implemented, would you accept the PR?

@kazu-yamamoto
Copy link
Owner

I cannot imagine what you wish to implement.
Anyway, would you send a PR to show your idea?

@greydot
Copy link
Author

greydot commented May 17, 2018

Something like

data RouteTable a = RouteTable (IPRTable IPv4 a) (IPRTable IPv6 a)

with 'lookup' and other functions taking 'IP' as an argument.

@kazu-yamamoto
Copy link
Owner

Please send me a PR.

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

No branches or pull requests

2 participants