Stomaton

edomata.core.Stomaton
See theStomaton companion class

Attributes

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

Members list

Value members

Inherited methods

def context[F[_] : Applicative, Env, S, R, E, T]: Stomaton[F, Env, S, R, E, Env]

constructs an stomaton that outputs the context

constructs an stomaton that outputs the context

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def decide[F[_] : Applicative, Env, S, R, E, T](f: => EitherNec[R, T]): Stomaton[F, Env, S, R, E, T]

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def decideS[F[_] : Applicative, Env, S, R, E](f: S => EitherNec[R, S]): Stomaton[F, Env, S, R, E, S]

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def eval[F[_] : Applicative, Env, S, R, E, T](f: F[T]): Stomaton[F, Env, S, R, E, T]

constructs an stomaton that evaluates an effect

constructs an stomaton that evaluates an effect

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def fromEither[F[_] : Applicative, Env, S, R, E, T](eit: Either[R, T]): Stomaton[F, Env, S, R, E, T]

Constructs a program that either outputs a value or rejects

Constructs a program that either outputs a value or rejects

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def fromEitherNec[F[_] : Applicative, Env, S, R, E, T](eit: EitherNec[R, T]): Stomaton[F, Env, S, R, E, T]

Constructs a program that either outputs a value or rejects

Constructs a program that either outputs a value or rejects

You can also use .toDecision syntax for more convenience.

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def fromOption[F[_] : Applicative, Env, S, R, E, T](opt: Option[T], orElse: R, other: R*): Stomaton[F, Env, S, R, E, T]

Constructs a program from an optional value, that outputs value if exists or rejects otherwise

Constructs a program from an optional value, that outputs value if exists or rejects otherwise

You can also use .toDecision syntax for more convenience

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def modify[F[_] : Applicative, Env, S, R, E](f: S => S): Stomaton[F, Env, S, R, E, S]

constructs an stomaton that modifies current state

constructs an stomaton that modifies current state

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def modifyS[F[_] : Applicative, Env, S, R, E](f: S => EitherNec[R, S]): Stomaton[F, Env, S, R, E, S]

constructs an stomaton that decides to modify state based on current state

constructs an stomaton that decides to modify state based on current state

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def publish[F[_] : Applicative, Env, S, R, E](ns: E*): Stomaton[F, Env, S, R, E, Unit]

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def pure[F[_] : Applicative, Env, S, R, E, T](t: T): Stomaton[F, Env, S, R, E, T]

constructs an stomaton that outputs a pure value

constructs an stomaton that outputs a pure value

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def reject[F[_] : Applicative, Env, S, R, E, T](r: R, rs: R*): Stomaton[F, Env, S, R, E, T]

constructs an stomaton that rejects with given rejections

constructs an stomaton that rejects with given rejections

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def run[F[_] : Applicative, Env, S, R, E, T](f: Env => F[T]): Stomaton[F, Env, S, R, E, T]

constructs an stomaton that runs an effect using its input

constructs an stomaton that runs an effect using its input

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def set[F[_] : Applicative, Env, S, R, E](s: S): Stomaton[F, Env, S, R, E, Unit]

constructs an stomaton that sets the current state

constructs an stomaton that sets the current state

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def state[F[_] : Applicative, Env, S, R, E]: Stomaton[F, Env, S, R, E, S]

constructs an stomaton that outputs the current state

constructs an stomaton that outputs the current state

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def unit[F[_] : Applicative, Env, R, E, N, T]: Stomaton[F, Env, R, E, N, Unit]

an stomaton with trivial output

an stomaton with trivial output

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala
def validate[F[_] : Applicative, Env, S, R, E, T](v: ValidatedNec[R, T]): Stomaton[F, Env, S, R, E, T]

Attributes

Inherited from:
StomatonConstructors
Source
Stomaton.scala

Givens

Inherited givens

given given_Contravariant_Stomaton[F[_], S, R, E, T]: Contravariant[[env] =>> Stomaton[F, env, S, R, E, T]]

Attributes

Inherited from:
StomatonInstances
Source
Stomaton.scala
given given_Eq_Stomaton[F[_], Env, S, R, E, T](using Eq[(Env, S) => F[ResponseE[R, E, (S, T)]]]): Eq[Stomaton[F, Env, S, R, E, T]]

Attributes

Inherited from:
StomatonInstances
Source
Stomaton.scala

Attributes

Inherited from:
StomatonInstances
Source
Stomaton.scala