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

extension.arrow.effects.instances.io.monadError.IOMonadErrorInstance.kt Maven / Gradle / Ivy

package arrow.effects.instances.io.monadError

import arrow.Kind
import arrow.effects.ForIO
import arrow.effects.IO
import arrow.effects.IO.Companion
import arrow.effects.instances.IOMonadErrorInstance
import kotlin.Boolean
import kotlin.Function0
import kotlin.Function1
import kotlin.Suppress
import kotlin.Throwable
import kotlin.jvm.JvmName

@JvmName("ensure")
@Suppress(
        "UNCHECKED_CAST",
        "USELESS_CAST",
        "EXTENSION_SHADOWED_BY_MEMBER",
        "UNUSED_PARAMETER"
)
fun  Kind.ensure(arg1: Function0, arg2: Function1): IO = arrow.effects.IO.monadError().run {
  [email protected](arg1, arg2) as arrow.effects.IO
}

fun Companion.monadError(): IOMonadErrorInstance = object : arrow.effects.instances.IOMonadErrorInstance {  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy