Transformer
Attributes
- Source
- Transformer.scala
- Graph
-
- Supertypes
-
trait WithResolvertrait WithZioTypetrait WithInterpolatortrait WithInterpolatorBasetrait WithDecomposeTreetrait WithReconstructTreetrait WithPrintIRtrait WithComputeTypetrait WithIRtrait WithFtrait MacroBaseclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- WithComputeType
- Source
- WithComputeType.scala
- Supertypes
Attributes
- Inherited from:
- WithDecomposeTree
- Source
- WithDecomposeTree.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithDecomposeTree
- Source
- WithDecomposeTree.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithF
- Source
- WithF.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithF
- Source
- WithF.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Inherited from:
- WithInterpolatorBase
- Source
- InterpolatorBase.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithInterpolatorBase
- Source
- InterpolatorBase.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithResolver
- Source
- WithResolver.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class InvokeWith
Attributes
- Inherited from:
- MacroBase
- Source
- WithF.scala
- Supertypes
Attributes
- Inherited from:
- WithResolver
- Source
- WithResolver.scala
- Supertypes
Attributes
- Inherited from:
- WithReconstructTree
- Source
- WithReconstructTree.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithReconstructTree
- Source
- WithReconstructTree.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
Wrap the IR.Pures/IR.Maps in the body of IR.Unsafe elements with ZIO.attempt. This is largely for the sake of tries working as expected, for example. (assume all the above examples are wrapped in defer { ... }) try { 1/0 } catch { case e: DivideByZeroException => ... } Normally with zio-run this will not be caught because 1/0 will not be wrapped into a ZIO.attempt. This statement will become succeed(1/0).catchSome { case e: ... } Instead we need it to become attempt(1/0).catchSome { case e: ... } This phase will do that.
Wrap the IR.Pures/IR.Maps in the body of IR.Unsafe elements with ZIO.attempt. This is largely for the sake of tries working as expected, for example. (assume all the above examples are wrapped in defer { ... }) try { 1/0 } catch { case e: DivideByZeroException => ... } Normally with zio-run this will not be caught because 1/0 will not be wrapped into a ZIO.attempt. This statement will become succeed(1/0).catchSome { case e: ... } Instead we need it to become attempt(1/0).catchSome { case e: ... } This phase will do that.
Also in a statement like this try { val x = run(foo); 1/0 } catch { case e: ... } It will become run(foo).map(x => 1/0).catchSome { case e: ... } Instead we need it to become run(foo).flatMap(x => attempt(1/0)).catchSome { case e: ... }
Most interestingly, in a statement like this try { unsafe { (run(foo), 4/0, run(bar)) } } catch { case: e... } Normally it would turn into { collect(Chunk(foo, bar)).map(iter => { val par1 = iter.next; var par2 = iter.next; (par1, 4/0, bar) } We need it to become { collect(Chunk(foo, bar)).flatMap(iter => attempt { val par1 = iter.next; var par2 = iter.next; (par1, 4/0, bar) }
Attributes
- Inherited from:
- WithIR
- Source
- WithIR.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
------------------------------------- ZioType Constructors -----------------------------------
------------------------------------- ZioType Constructors -----------------------------------
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Source
- Transformer.scala
Inherited methods
Attributes
- Inherited from:
- WithPrintIR
- Source
- WithPrintIR.scala
Attributes
- Inherited from:
- WithPrintIR
- Source
- WithPrintIR.scala
Attributes
- Inherited from:
- WithPrintIR
- Source
- WithPrintIR.scala
Attributes
- Inherited from:
- MacroBase
- Source
- WithF.scala
Attributes
- Definition Classes
- Inherited from:
- WithInterpolator
- Source
- WithInterpolator.scala
Extensions
Inherited extensions
Attributes
- Inherited from:
- WithResolver
- Source
- WithResolver.scala
Attributes
- Inherited from:
- WithResolver
- Source
- WithResolver.scala
Implicits
Implicits
Attributes
- Source
- Transformer.scala
Inherited implicits
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala
Attributes
- Inherited from:
- WithZioType
- Source
- WithZioType.scala