Skip to content

Instantly share code, notes, and snippets.

@hejfelix
Created September 30, 2017 12:26
Show Gist options
  • Save hejfelix/de05df7f3a83823f232d5ce4dc2426d5 to your computer and use it in GitHub Desktop.
Save hejfelix/de05df7f3a83823f232d5ce4dc2426d5 to your computer and use it in GitHub Desktop.
package com.lambdaminute.wishr.slick.effect
import cats.effect.{Effect, IO}
import slick.dbio.DBIO
class DBIOEffectInstances {
val dbioEffect = new Effect[DBIO[_]] {
override def runAsync[A](fa: DBIO[_][A])(cb: (Either[Throwable, A]) => IO[Unit]) = ???
override def async[A](k: ((Either[Throwable, A]) => Unit) => Unit) = ???
override def suspend[A](thunk: => DBIO[_][A]) = ???
override def raiseError[A](e: Throwable) = ???
override def handleErrorWith[A](fa: DBIO[_][A])(f: (Throwable) => DBIO[_][A]) = ???
override def flatMap[A, B](fa: DBIO[_][A])(f: (A) => DBIO[_][B]) = ???
override def tailRecM[A, B](a: A)(f: (A) => DBIO[_][Either[A, B]]) = ???
override def pure[A](x: A) = ???
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment