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

com.evolutiongaming.kafka.journal.util.BracketFromMonadError.scala Maven / Gradle / Ivy

The newest version!
package com.evolutiongaming.kafka.journal.util

import cats.MonadError

trait BracketFromMonadError[F[_], E] extends BracketFromMonad[F, E] {

  def F: MonadError[F, E]

  def raiseError[A](e: E) = F.raiseError(e)

  def handleErrorWith[A](fa: F[A])(f: E => F[A]) = F.handleErrorWith(fa)(f)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy