All Downloads are FREE. Search and download functionalities are using the official Maven repository.

extension.arrow.effects.instances.io.monadThrow.IOMonadThrowInstance.kt Maven / Gradle / Ivy

package arrow.effects.instances.io.monadThrow

import arrow.effects.ForIO
import arrow.effects.IO
import arrow.effects.IO.Companion
import arrow.effects.instances.IOMonadThrowInstance
import arrow.typeclasses.MonadErrorContinuation
import kotlin.Suppress
import kotlin.jvm.JvmName

@JvmName("bindingCatch")
@Suppress(
        "UNCHECKED_CAST",
        "USELESS_CAST",
        "EXTENSION_SHADOWED_BY_MEMBER",
        "UNUSED_PARAMETER"
)
fun  bindingCatch(arg0: suspend MonadErrorContinuation.() -> B): IO = arrow.effects.IO
   .monadThrow()
   .bindingCatch(arg0) as arrow.effects.IO

fun Companion.monadThrow(): IOMonadThrowInstance = object : arrow.effects.instances.IOMonadThrowInstance {  }