Skip to content

Commit 3ff1180

Browse files
Avoid indirect call to AsPrismImpl (#1186)
* Avoid access to private module in quotes (see scala/scala3#13215) * Make code more preformant
1 parent 1f2f53e commit 3ff1180

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/shared/src/main/scala-3.x/monocle/internal/focus/features/as/AsGenerator.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ package monocle.internal.focus.features.as
22

33
import monocle.Prism
44
import monocle.internal.focus.FocusBase
5-
import monocle.syntax.AsPrism
5+
import monocle.syntax.AsPrismImpl
66

77
private[focus] trait AsGenerator {
8-
this: FocusBase =>
8+
this: FocusBase =>
99

1010
import macroContext.reflect._
1111

1212
def generateAs(action: FocusAction.KeywordAs): Term = {
1313
import action.{fromType, toType}
1414

1515
(fromType.asType, toType.asType) match {
16-
case ('[f], '[t]) => '{ AsPrism[f, t] }.asTerm
16+
case ('[f], '[t]) => AsPrismImpl[f, t].asTerm
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)