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

io.iteratee.task.TaskModule.scala Maven / Gradle / Ivy

package io.iteratee.task

import cats.MonadError
import io.iteratee.{ EnumerateeModule, EnumeratorErrorModule, IterateeErrorModule, Module }
import io.iteratee.files.FileModule
import scalaz.concurrent.Task

trait TaskModule extends TaskInstances with Module[Task]
  with EnumerateeModule[Task]
  with EnumeratorErrorModule[Task, Throwable] with IterateeErrorModule[Task, Throwable]
  with FileModule[Task] {
  final type M[f[_]] = MonadError[f, Throwable]

  final protected val F: MonadError[Task, Throwable] = taskMonadError

  final protected def captureEffect[A](a: => A): Task[A] = Task(a)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy