create

org.atnos.eff.create

Attributes

Source
all.scala
Graph
Supertypes
trait SafeCreation
trait SafeTypes
trait EffCreation
trait MemoCreation
trait MemoTypes
trait FutureTypes
trait ListCreation
trait EvalCreation
trait EvalTypes
class Object
trait Matchable
class Any
Show all
Self type
create.type

Members list

Type members

Inherited types

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
type _Choose[R] = Member[Choose, R]

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
type _Eval[R] = Member[Eval, R]

Attributes

Inherited from:
EvalTypes
Source
EvalTypes.scala

Attributes

Inherited from:
FutureTypes
Source
FutureTypes.scala
type _List[R] = Member[List, R]

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala
type _Memo[R] = Member[Memoized, R]

Attributes

Inherited from:
MemoTypes
Source
MemoTypes.scala
type _Option[R] = Member[Option, R]

Attributes

Inherited from:
OptionCreation
Source
OptionCreation.scala
type _Safe[R] = Member[Safe, R]

Attributes

Inherited from:
SafeTypes
Source
SafeTypes.scala

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
type _choose[R] = MemberIn[Choose, R]

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
type _eval[R] = MemberIn[Eval, R]

Attributes

Inherited from:
EvalTypes
Source
EvalTypes.scala

Attributes

Inherited from:
FutureTypes
Source
FutureTypes.scala
type _list[R] = MemberIn[List, R]

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala
type _memo[R] = MemberIn[Memoized, R]

Attributes

Inherited from:
MemoTypes
Source
MemoTypes.scala
type _option[R] = MemberIn[Option, R]

Attributes

Inherited from:
OptionCreation
Source
OptionCreation.scala
type _safe[R] = MemberIn[Safe, R]

Attributes

Inherited from:
SafeTypes
Source
SafeTypes.scala

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala

Value members

Inherited methods

def ap[R, A, B](a: Eff[R, A])(f: Eff[R, A => B]): Eff[R, B]

apply a function to an Eff value using the applicative instance

apply a function to an Eff value using the applicative instance

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def ask[R, T](using MemberIn[[_] =>> Reader[T, _$1], R]): Eff[R, T]

get the environment

get the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderCreation.scala
def bracketLast[R, A, B, C](acquire: Eff[R, A])(use: A => Eff[R, B])(release: A => Eff[R, C]): Eff[R, B]

bracket an action with one last action to execute at the end of the program

bracket an action with one last action to execute at the end of the program

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def catchNonFatalThrowable[R, A](a: => A)(using MemberIn[ThrowableEither, R]): Eff[R, A]

create an Either effect from a value possibly throwing a Throwable

create an Either effect from a value possibly throwing a Throwable

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def chooseFrom[R : _choose, A](as: List[A]): Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
def collapse[R, M[_], A](r: Eff[R, M[A]])(using m: MemberIn[M, R]): Eff[R, A]

use the internal effect as one of the stack effects

use the internal effect as one of the stack effects

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def correct[R, E, A](a: A)(using MemberIn[[_] =>> Validate[E, _$10], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def defer[R : _eval, A](eff: => Eval[Eff[R, A]]): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source
EvalCreation.scala
def delay[R : _eval, A](a: => A): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source
EvalCreation.scala
def empty[R : _list, A]: Eff[R, A]

create a list effect with no values

create a list effect with no values

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala
def eval[R : _safe, A](a: Eval[A]): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def exception[R : _safe, A](t: Throwable): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def flatSequenceA[R, F[_], A](fs: F[Eff[R, F[A]]])(using FT: Traverse[F], FM: FlatMap[F]): Eff[R, F[A]]

use the applicative instance of Eff to sequence a list of values, then flatten it

use the applicative instance of Eff to sequence a list of values, then flatten it

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(using FT: Traverse[F], FM: FlatMap[F]): Eff[R, F[B]]

use the applicative instance of Eff to traverse a list of values, then flatten it

use the applicative instance of Eff to traverse a list of values, then flatten it

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(using MemberIn[[_] =>> Either[E, _$8], R]): Eff[R, A]

create an Either effect from a value possibly throwing an exception

create an Either effect from a value possibly throwing an exception

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def fromEither[R, E, A](Either: Either[E, A])(using MemberIn[[_] =>> Either[E, _$2], R]): Eff[R, A]

create an Either effect from a single Either value

create an Either effect from a single Either value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
final def fromFuture[R : _future, A](c: => Future[A], timeout: Option[FiniteDuration]): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
def fromList[R : _list, A](as: List[A]): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala
def fromOption[R : _option, A](o: Option[A]): Eff[R, A]

create an Option effect from a single Option value

create an Option effect from a single Option value

Attributes

Inherited from:
OptionCreation
Source
OptionCreation.scala
final def futureDefer[R : _future, A](a: => Future[A], timeout: Option[FiniteDuration]): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
final def futureDelay[R : _future, A](a: => A, timeout: Option[FiniteDuration]): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
final def futureFail[R : _future, A](t: Throwable): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
final def futureFromEither[R : _future, A](e: Either[Throwable, A]): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
def get[R, S](using MemberIn[[_] =>> State[S, _$3], R]): Eff[R, S]

get the current state value

get the current state value

Attributes

Inherited from:
StateCreation
Source
StateCreation.scala
def getCache[R : _memo]: Eff[R, Cache]

Attributes

Inherited from:
MemoCreation
Source
MemoCreation.scala
def gets[R, S, T](f: S => T)(using MemberIn[[_] =>> State[S, _$5], R]): Eff[R, T]

get the current state value and map it with a function f

get the current state value and map it with a function f

Attributes

Inherited from:
StateCreation
Source
StateCreation.scala
def impure[R, A, B](value: A, continuation: Continuation[R, A, B], map: B => B): Eff[R, B]

create a delayed impure value

create a delayed impure value

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def impure[R, A, B](value: A, continuation: Continuation[R, A, B]): Eff[R, B]

create a delayed impure value

create a delayed impure value

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def impure[R, X, A](union: Union[R, X], continuation: Continuation[R, X, A]): Eff[R, A]

create a impure value from an union of effects and a continuation

create a impure value from an union of effects and a continuation

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def left[R, E, A](e: E)(using MemberIn[[_] =>> Either[E, _$4], R]): Eff[R, A]

create a failed value

create a failed value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def local[R, T, U](f: T => U)(using MemberIn[[_] =>> Reader[T, _$2], R]): Eff[R, U]

modify the environment

modify the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderCreation.scala
def localKleisli[R, T, U, F[_]](f: T => F[U])(using MemberIn[[_] =>> Kleisli[F, T, _$5], R]): Eff[R, U]

modify the environment using a Kleisli[F, T, *]

modify the environment using a Kleisli[F, T, *]

Attributes

Inherited from:
ReaderCreation
Source
ReaderCreation.scala
def memoize[R : _memo, A](key: AnyRef, a: => A): Eff[R, A]

Attributes

Inherited from:
MemoCreation
Source
MemoCreation.scala
def modify[R, S](f: S => S)(using MemberIn[[_] =>> State[S, _$7], R]): Eff[R, Unit]

modify the current state value

modify the current state value

Attributes

Inherited from:
StateCreation
Source
StateCreation.scala
def none[R : _option, A]: Eff[R, A]

no value returned

no value returned

Attributes

Inherited from:
OptionCreation
Source
OptionCreation.scala
def now[R : _eval, A](a: A): Eff[R, A]

Attributes

Inherited from:
EvalCreation
Source
EvalCreation.scala
def optionEither[R, E, A](option: Option[A], e: => E)(using MemberIn[[_] =>> Either[E, _$1], R]): Eff[R, A]

create an Either effect from a single Option value

create an Either effect from a single Option value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def plus[R : _choose, A](a1: => Eff[R, A], a2: => Eff[R, A]): Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala
def protect[R : _safe, A](a: => A): Eff[R, A]

Attributes

Inherited from:
SafeCreation
Source
SafeCreation.scala
def pure[R, A](a: A): Eff[R, A]

create a pure value

create a pure value

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def put[R, S](s: S)(using MemberIn[[_] =>> State[S, _$1], R]): Eff[R, Unit]

store a new state value

store a new state value

Attributes

Inherited from:
StateCreation
Source
StateCreation.scala

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
def right[R, E, A](a: A)(using MemberIn[[_] =>> Either[E, _$6], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

Inherited from:
EitherCreation
Source
EitherCreation.scala
def send[T[_], R, V](tv: T[V])(using member: MemberIn[T, R]): Eff[R, V]

create an Eff[R, A] value from an effectful value of type T[V] provided that T is one of the effects of R

create an Eff[R, A] value from an effectful value of type T[V] provided that T is one of the effects of R

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def sequenceA[R, F[_] : Traverse, A](fs: F[Eff[R, A]]): Eff[R, F[A]]

use the applicative instance of Eff to sequence a list of values

use the applicative instance of Eff to sequence a list of values

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def singleton[R : _list, A](a: A): Eff[R, A]

create a list effect from a single value

create a list effect from a single value

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala
def some[R : _option, A](a: A): Eff[R, A]

a value is returned

a value is returned

Attributes

Inherited from:
OptionCreation
Source
OptionCreation.scala
def tell[R, O](o: O)(using MemberIn[[_] =>> Writer[O, _$1], R]): Eff[R, Unit]

write a given value

write a given value

Attributes

Inherited from:
WriterCreation
Source
WriterCreation.scala
def traverseA[R, F[_] : Traverse, A, B](fs: F[A])(f: A => Eff[R, B]): Eff[R, F[B]]

use the applicative instance of Eff to traverse a list of values

use the applicative instance of Eff to traverse a list of values

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def unit[R]: Eff[R, Unit]

create an Eff value for ()

create an Eff value for ()

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def validateCheck[R, E](condition: Boolean, e: => E)(using MemberIn[[_] =>> Validate[E, _$17], R]): Eff[R, Unit]

check a correct condition

check a correct condition

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def validateEither[R, E, A](either: Either[E, A])(using MemberIn[[_] =>> Validate[E, _$3], R]): Eff[R, Unit]

create an Validate effect from a single Either value

create an Validate effect from a single Either value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def validateIor[R, E, A](ior: Ior[E, A])(using MemberIn[[_] =>> Validate[E, _$5], R]): Eff[R, Unit]

create an Validate effect from a single Ior value

create an Validate effect from a single Ior value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def validateOption[R, E, A](option: Option[A], e: => E)(using MemberIn[[_] =>> Validate[E, _$1], R]): Eff[R, Unit]

create an Validate effect from a single Option value

create an Validate effect from a single Option value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def validateValue[R, E, A](condition: Boolean, a: => A, e: => E)(using MemberIn[[_] =>> Validate[E, _$18], R]): Eff[R, A]

check a correct value

check a correct value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def values[R : _list, A](as: A*): Eff[R, A]

create a list effect from a list of values

create a list effect from a list of values

Attributes

Inherited from:
ListCreation
Source
ListCreation.scala

Attributes

Inherited from:
FutureCreation
Source
FutureCreation.scala
def warning[R, E, A](a: A, e: E)(using MemberIn[[_] =>> Validate[E, _$15], R]): Eff[R, A]

create a correct value with warning

create a correct value with warning

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def warning[R, E](e: E)(using MemberIn[[_] =>> Validate[E, _$13], R]): Eff[R, Unit]

create a pure warning

create a pure warning

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def whenStopped[R, A](e: Eff[R, A], action: Last[R]): Eff[R, A]

attach a clean-up action to the continuation (if any)

attach a clean-up action to the continuation (if any)

Attributes

Inherited from:
EffCreation
Source
EffCreation.scala
def wrong[R, E](e: E)(using MemberIn[[_] =>> Validate[E, _$8], R]): Eff[R, Unit]

create a failed value

create a failed value

Attributes

Inherited from:
ValidateCreation
Source
ValidateCreation.scala
def zero[R : _choose, A]: Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source
ChooseCreation.scala