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

Extracting given F[_] from modify function to the result. #44

Open
bandrzejczak opened this issue Aug 13, 2018 · 0 comments
Open

Extracting given F[_] from modify function to the result. #44

bandrzejczak opened this issue Aug 13, 2018 · 0 comments

Comments

@bandrzejczak
Copy link

Given the code:

case class A(a: B)
case class B(b: Int)
def x(b: Int): Future[Int] = ???

I'd like to be able to write:

(a: A) => a.modify(_.a.b).using(x)

I'd expect it to yield Future[A]. I'd also expect it to work for any F[_] that has QuicklensFunctor type class instance.

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

1 participant