wei-k.httpz_2.10.0.5.1.source-code.Interpreter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of httpz_2.10 Show documentation
Show all versions of httpz_2.10 Show documentation
purely functional http client
The newest version!
package httpz
import scalaz.{One => _, Two => _, _}
abstract class Interpreter[F[_]: Monad] {
final val interpreter: InterpreterF[F] =
new InterpreterF[F] {
def apply[A](a: RequestF[A]) = go(a)
}
protected[this] def go[A](a: RequestF[A]): F[A]
final def run[E, A](a: ActionE[E, A]): F[E \/ A] =
a.run.foldMap(interpreter)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy