-
Notifications
You must be signed in to change notification settings - Fork 56
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
Documenting rules for when type inference can solve for indices #94
Labels
Comments
Agreed; Hopefully you won't even need to specify I also agree with everything else you said. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I do a small bit of this in the coproduct
embed
PR, but I think there should be more:There should be one central piece of documentation (which other methods can link to) describing the
Index
technique commonly used in frunk, describing how:Index
type parameters. Even when using turbofish syntax (once available), these should generally be left to type inference using_
.pluck
and coproduct'sinject
succeed when the type appears exactly once in the HList/coproduct.It should also explain workarounds for when type inference fails:
funky
)The text was updated successfully, but these errors were encountered: