Created
September 30, 2017 12:26
-
-
Save hejfelix/de05df7f3a83823f232d5ce4dc2426d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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