Skip to content

Commit

Permalink
Concrete return type for MkFieldLens.mkFieldLens (#1324)
Browse files Browse the repository at this point in the history
Co-authored-by: Lior Regev <[email protected]>
Co-authored-by: Georgi Krastev <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent cdad7bb commit 3d81218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/shared/src/main/scala/shapeless/lenses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ object MkFieldLens {
implicit def mkFieldLens[A, K, R <: HList, B]
(implicit
mkGen: MkLabelledGenericLens.Aux[A, R],
mkLens: MkRecordSelectLens[R, K]): Aux[A, K, mkLens.Elem] =
mkLens: MkRecordSelectLens.Aux[R, K, B]): Aux[A, K, B] =
new MkFieldLens[A, K] {
type Elem = mkLens.Elem
def apply(): Lens[A, mkLens.Elem] = mkLens() compose mkGen()
type Elem = B
def apply(): Lens[A, B] = mkLens() compose mkGen()
}
}

Expand Down

0 comments on commit 3d81218

Please sign in to comment.