Skip to content

Commit

Permalink
Fix: use contravariance to allow derived index type
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Jan 23, 2024
1 parent ef445f7 commit a6f0a5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ package object quicklens {
}
}

trait QuicklensIndexedFunctor[F[_], I] {
trait QuicklensIndexedFunctor[F[_], -I] {
def at[A](fa: F[A], f: A => A, idx: I): F[A]
def atOrElse[A](fa: F[A], f: A => A, idx: I, default: => A): F[A]
def index[A](fa: F[A], f: A => A, idx: I): F[A]
Expand Down

0 comments on commit a6f0a5c

Please sign in to comment.