This file contains 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
import cats.effect.{ContextShift, IO, Timer} | |
import cats.effect.concurrent.Deferred | |
import com.outworkers.phantom.DefaultImports | |
import com.outworkers.phantom.Manager.scalaExecutor | |
import com.outworkers.phantom.builder.query.execution.{FutureMonad, PromiseInterface} | |
import com.outworkers.phantom.ops.QueryContext | |
import scala.concurrent.ExecutionContextExecutor | |
import scala.concurrent.duration._ |
This file contains 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 mypackage | |
import ch.qos.logback.core.joran.action.Action | |
import ch.qos.logback.core.joran.spi.InterpretationContext | |
import com.typesafe.config.ConfigFactory | |
import org.xml.sax.Attributes | |
/** | |
* Make properties defined in application.conf available to logback | |
*/ |
This file contains 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
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.Future | |
import scala.language.higherKinds | |
import scalaz._ | |
import Scalaz._ | |
object LoggingMonadTransformerPOC extends App { | |
type LoggedT[F[_], A] = WriterT[F, List[String], A] | |
type LoggedFuture[A] = LoggedT[Future, A] |