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

Preserve variance of type aliases #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hmemcpy
Copy link

@hmemcpy hmemcpy commented Apr 26, 2022

This PR adds the covariant annotation + on the type parameter of the alias used in e.g. ParseResult, as the aliased type is using this parameter in the covariant position.

This should not cause any changes in the library, however, fixes an issue with using typeclasses from zio-prelude, which use variance annotations.

I also added it on the CvsReader alias, because ResourceIterator is also covariant, though technically I didn't have to for this 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

Successfully merging this pull request may close these issues.

1 participant