-
Notifications
You must be signed in to change notification settings - Fork 13
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
Generalize types of lenses and isos #12
Comments
I've updated I can write up the changes to |
There will be more cleanup needed, but with the changes I still can't get
to typecheck:
|
Oh yeah, you're right. It doesn't solve that particular problem. I feel sheepish. -.- Then put this on hold until I come up with a more compelling use case for this. |
As you probably know, these lenses and isos actually have more general types using four type parameters instead of two. Would it be possible to generalize these all to the four type parameter versions? I often find myself wanting the more general types.
An example of this is a "head" utility for streaming text. I'd like to write this:
... but this only type-checks if you use the more general type for those two lenses.
I plan on implementing a similar change for
pipes-bytestring
.The text was updated successfully, but these errors were encountered: