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

ciris.api.ApplicativeError.scala Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
package ciris.api

trait ApplicativeError[F[_], E] extends Applicative[F] {
  def raiseError[A](e: E): F[A]
  def handleErrorWith[A](fa: F[A])(f: E => F[A]): F[A]
}

object ApplicativeError {
  def apply[F[_], E](implicit ae: ApplicativeError[F, E]): ApplicativeError[F, E] = ae
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy