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

fixed zio.Tag's usage in ZIO's WithRun implicit #1238

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ private[zioInstances] class ZioInstances {
private[this] val zioTofuInstanceAny: ZioTofuInstance[Any, Any] = new ZioTofuInstance
final def zioTofuInstance[R, E]: ZioTofuInstance[R, E] = zioTofuInstanceAny.asInstanceOf[ZioTofuInstance[R, E]]

private[this] val zioTofuWithRunInstanceAny = new ZioTofuWithRunInstance[Any, Any]
final def zioTofuWithRunInstance[R, E]: ZioTofuWithRunInstance[R, E] =
zioTofuWithRunInstanceAny.asInstanceOf[ZioTofuWithRunInstance[R, E]]
final def zioTofuWithRunInstance[R: Tag, E]: ZioTofuWithRunInstance[R, E] = new ZioTofuWithRunInstance

final def zioTofuUnliftManyInstance[R, E, R1: Tag]: ZioTofuUnliftManyInstance[R, E, R1] =
new ZioTofuUnliftManyInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private[zioInstances] trait ZioTofuImplicits2 extends ZioTofuImplicits3 {
@inline final implicit def zioTofuErrorsToImplicit[R, E]: ZioTofuErrorsToInstance[R, E, Nothing] =
zioTofuErrorsToInstance
@inline final implicit def zioTofuImplicit[R, E]: ZioTofuInstance[R, E] = zioTofuInstance
@inline final implicit def zioTofuWithRunImplicit[R, E]: ZioTofuWithRunInstance[R, E] = zioTofuWithRunInstance
@inline final implicit def zioTofuWithRunImplicit[R: Tag, E]: ZioTofuWithRunInstance[R, E] = zioTofuWithRunInstance
@inline final implicit def zioTofuBlockingImplicit[R, E]: ZioTofuBlockingInstance[R, E] =
zioTofuBlockingInstance[R, E]
}
Expand Down
Loading