Skip to content

Instantly share code, notes, and snippets.

View terjokhin's full-sized avatar
🏠
Working from home

Alexey Terekhin terjokhin

🏠
Working from home
  • Netherlands, Utrecht
View GitHub Profile
@Odomontois
Odomontois / HigherKind.md
Last active September 23, 2020 18:33
Рак на Миде

Поясняю за Mid по запросу @aleksei_t

Исходная мысль была такая. Итак у нас есть

trait MyBusinessModule[F[_]]{
  def doBusinessThing(entity: Entity, info: Info): F[Value]
  def undoBusinessThing(entity: Entity): F[Respect]
}
import scala.concurrent.Future
import scala.util.{Failure, Success}
object Czar {
class Context
case class ApiTestException(message: String, context: Context, cause: Option[Throwable] = None)
extends Exception(message)
}
trait Czar {