Skip to content

Commit

Permalink
toLocal -> asLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Nov 24, 2024
1 parent 1d42c9c commit 36d5b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/cats/effect/IO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ object IO extends IOCompanionPlatform with IOLowPriorityImplicits with TuplePara
}

def local[E](e: E): IO[cats.mtl.Local[IO, E]] =
IOLocal(e).map(_.toLocal)
IOLocal(e).map(_.asLocal)

// instances

Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/cats/effect/IOLocal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ sealed trait IOLocal[A] extends IOLocalPlatform[A] { self =>
*/
def lens[B](get: A => B)(set: A => B => A): IOLocal[B]

final def toLocal: Local[IO, A] =
final def asLocal: Local[IO, A] =
new Local[IO, A] {
def applicative: Applicative[IO] =
IO.asyncForIO
Expand Down

0 comments on commit 36d5b17

Please sign in to comment.