trait
Pulls[Pull[+_[_], +_, +_]] extends AnyRef
Type Members
-
abstract
type
Stream[+F[_], +O]
Abstract Value Members
-
abstract
def
close[F[_], O, R](p: Pull[F, O, R]): Stream[F, O]
-
abstract
def
done: Pull[Nothing, Nothing, Nothing]
-
abstract
def
eval[F[_], R](f: F[R]): Pull[F, Nothing, R]
-
abstract
def
fail(err: Throwable): Pull[Nothing, Nothing, Nothing]
-
abstract
def
flatMap[F[_], O, R0, R](p: Pull[F, O, R0])(f: (R0) ⇒ Pull[F, O, R]): Pull[F, O, R]
-
abstract
def
onError[F[_], O, R](p: Pull[F, O, R])(handle: (Throwable) ⇒ Pull[F, O, R]): Pull[F, O, R]
-
abstract
def
or[F[_], O, R](p1: Pull[F, O, R], p2: ⇒ Pull[F, O, R]): Pull[F, O, R]
-
abstract
def
outputs[F[_], O](s: Stream[F, O]): Pull[F, O, Unit]
-
abstract
def
pure[R](a: R): Pull[Nothing, Nothing, R]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Pulls[Pull], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (Pulls[Pull]) ⇒ Boolean, msg: ⇒ Any): Pulls[Pull]
-
def
ensuring(cond: (Pulls[Pull]) ⇒ Boolean): Pulls[Pull]
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Pulls[Pull]
-
def
ensuring(cond: Boolean): Pulls[Pull]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Pulls[Pull], B)
Inherited from AnyRef
Inherited from Any
Inherited by implicit conversion any2stringadd from
Pulls[Pull] to any2stringadd[Pulls[Pull]]
Inherited by implicit conversion StringFormat from
Pulls[Pull] to StringFormat[Pulls[Pull]]
Inherited by implicit conversion Ensuring from
Pulls[Pull] to Ensuring[Pulls[Pull]]
Inherited by implicit conversion ArrowAssoc from
Pulls[Pull] to ArrowAssoc[Pulls[Pull]]
Laws:
or
forms a monoid in conjunction withdone
:or(done, p) == p
andor(p, done) == p
.or(or(p1,p2), p3) == or(p1, or(p2,p3))
fail
is caught byonError
:onError(fail(e))(f) == f(e)
Pull
forms a monad withpure
andflatMap
:pure >=> f == f
f >=> pure == f
(f >=> g) >=> h == f >=> (g >=> h)
wheref >=> g
is defined asa => a flatMap f flatMap g