sealed trait Compiler[F[_], G[_]] extends AnyRef
Provides compilation of a Stream[F, O]
to a G[*]
.
In the most common case, F = G = IO
or another "fully featured" effect type. However, there
are other common instantiations like F = Pure, G = Id
, which allows compiling a
Stream[Pure, A]
in to pure values.
For the common case where F = G
, the target
implicit constructor provides an instance of
Compiler[F, F]
-- target
requires a Compiler.Target[F]
instance. The Compiler.Target[F]
is a
super charged MonadErrorThrow[F]
, providing additional capabilities needed for stream compilation.
Compiler.Target[F]
instances are given for all F[_]
which have:
Concurrent[F]
instances- both
MonadCancelThrow[F]
andSync[F]
intances - only
Sync[F]
instances Support for stream interruption requires compilation to an effect which has aConcurrent
instance.
- Annotations
- @implicitNotFound()
- Source
- Compiler.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Compiler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])