← ZIO Direct docs

PureMonad

zio.direct.pure.PureMonad
object PureMonad

Attributes

Source
PureMonad.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
PureMonad.type

Members list

Type members

Types

type PureMonadModel = MonadModel { type Variances = Variances6[Unused, Unused, Unused, Contravariant, Covariant, Covariant]; type Letters = Letters6[Other, Other, Other, R, E, A]; }

Attributes

Source
PureMonad.scala

Value members

Concrete methods

def Fallible[W, S]: MonadFallible[[R, E, A] =>> ZPure[W, S, S, R, E, A]]

MonadFalliable implementation for ZPure. NOTE: Be sure to always 'plug' the CanFail slots manually. Otherwise when the macro synthesizes calls using catchSome, ensuring, etc... the additional time it will take to "typecheck" the CanFail will horribly slow-down compile-times. Especially if there are various other macros in the same file that are also doing type-checks.

MonadFalliable implementation for ZPure. NOTE: Be sure to always 'plug' the CanFail slots manually. Otherwise when the macro synthesizes calls using catchSome, ensuring, etc... the additional time it will take to "typecheck" the CanFail will horribly slow-down compile-times. Especially if there are various other macros in the same file that are also doing type-checks.

Attributes

Source
PureMonad.scala
def Log[W, S]: MonadLog[[R, E, A] =>> ZPure[W, S, S, R, E, A], W]

Attributes

Source
PureMonad.scala
def Sequence[W, S]: MonadSequence[[R, E, A] =>> ZPure[W, S, S, R, E, A]]

Attributes

Source
PureMonad.scala
def SequencePar[W, S]: MonadSequenceParallel[[R, E, A] =>> ZPure[W, S, S, R, E, A]]

Attributes

Source
PureMonad.scala
def State[W, S]: MonadState[[R, E, A] =>> ZPure[W, S, S, R, E, A], S]

Attributes

Source
PureMonad.scala
def Success[W, S]: MonadSuccess[[R, E, A] =>> ZPure[W, S, S, R, E, A]]

Attributes

Source
PureMonad.scala