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
EitherEffect.scala
type _Choose[R] = Member[Choose, R]

Attributes

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

Attributes

Inherited from:
EvalTypes
Source
EvalEffect.scala

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
SafeTypes
Source
SafeEffect.scala

Attributes

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

Attributes

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

Attributes

Inherited from:
EvalTypes
Source
EvalEffect.scala

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
SafeTypes
Source
SafeEffect.scala

Attributes

Inherited from:
EitherCreation
Source
EitherEffect.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
Eff.scala
def ask[R, T](implicit member: MemberIn[[_] =>> Reader[T, _$1], R]): Eff[R, T]

get the environment

get the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderEffect.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
Eff.scala
def catchNonFatalThrowable[R, A](a: => A)(implicit member: 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
EitherEffect.scala
def chooseFrom[R : _choose, A](as: List[A]): Eff[R, A]

Attributes

Inherited from:
ChooseCreation
Source
Choose.scala
def collapse[R, M[_], A](r: Eff[R, M[A]])(implicit 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
Eff.scala
def correct[R, E, A](a: A)(implicit m: MemberIn[[_] =>> Validate[E, _$10], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

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

Attributes

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

Attributes

Inherited from:
EvalCreation
Source
EvalEffect.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
ListEffect.scala
def eval[R : _safe, A](a: Eval[A]): Eff[R, A]

Attributes

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

Attributes

Inherited from:
SafeCreation
Source
SafeEffect.scala

Attributes

Inherited from:
SafeCreation
Source
SafeEffect.scala
def flatSequenceA[R, F[_], A](fs: F[Eff[R, F[A]]])(implicit 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
Eff.scala
def flatTraverseA[R, F[_], A, B](fs: F[A])(f: A => Eff[R, F[B]])(implicit 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
Eff.scala
def fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(implicit member: MemberIn[[_] =>> Either[E, _$7], 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
EitherEffect.scala
def fromEither[R, E, A](Either: Either[E, A])(implicit member: 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
EitherEffect.scala
final def fromFuture[R : _future, A](c: => Future[A], timeout: Option[FiniteDuration]): Eff[R, A]

Attributes

Inherited from:
FutureCreation
Source
FutureEffect.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
ListEffect.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
OptionEffect.scala
final def futureDefer[R : _future, A](a: => Future[A], timeout: Option[FiniteDuration]): Eff[R, A]

Attributes

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

Attributes

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

Attributes

Inherited from:
FutureCreation
Source
FutureEffect.scala

Attributes

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

Attributes

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

get the current state value

get the current state value

Attributes

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

Attributes

Inherited from:
MemoCreation
Source
MemoEffect.scala
def gets[R, S, T](f: S => T)(implicit member: 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
StateEffect.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
Eff.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
Eff.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
Eff.scala
def left[R, E, A](e: E)(implicit member: MemberIn[[_] =>> Either[E, _$3], R]): Eff[R, A]

create a failed value

create a failed value

Attributes

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

modify the environment

modify the environment

Attributes

Inherited from:
ReaderCreation
Source
ReaderEffect.scala
def localKleisli[R, T, U, F[_]](f: T => F[U])(implicit member: 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
ReaderEffect.scala
def memoize[R : _memo, A](key: AnyRef, a: => A): Eff[R, A]

Attributes

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

modify the current state value

modify the current state value

Attributes

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

no value returned

no value returned

Attributes

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

Attributes

Inherited from:
EvalCreation
Source
EvalEffect.scala
def optionEither[R, E, A](option: Option[A], e: => E)(implicit member: 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
EitherEffect.scala
def plus[R : _choose, A](a1: => Eff[R, A], a2: => Eff[R, A]): Eff[R, A]

Attributes

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

Attributes

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

create a pure value

create a pure value

Attributes

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

store a new state value

store a new state value

Attributes

Inherited from:
StateCreation
Source
StateEffect.scala

Attributes

Inherited from:
EffCreation
Source
Eff.scala

Attributes

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

create a correct value

create a correct value

Attributes

Inherited from:
EitherCreation
Source
EitherEffect.scala
def send[T[_], R, V](tv: T[V])(implicit 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
Eff.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
Eff.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
ListEffect.scala
def some[R : _option, A](a: A): Eff[R, A]

a value is returned

a value is returned

Attributes

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

write a given value

write a given value

Attributes

Inherited from:
WriterCreation
Source
WriterEffect.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
Eff.scala
def unit[R]: Eff[R, Unit]

create an Eff value for ()

create an Eff value for ()

Attributes

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

check a correct condition

check a correct condition

Attributes

Inherited from:
ValidateCreation
Source
ValidateEffect.scala
def validateEither[R, E, A](either: Either[E, A])(implicit m: 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
ValidateEffect.scala
def validateIor[R, E, A](ior: Ior[E, A])(implicit m: 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
ValidateEffect.scala
def validateOption[R, E, A](option: Option[A], e: => E)(implicit m: 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
ValidateEffect.scala
def validateValue[R, E, A](condition: Boolean, a: => A, e: => E)(implicit m: MemberIn[[_] =>> Validate[E, _$16], R]): Eff[R, A]

check a correct value

check a correct value

Attributes

Inherited from:
ValidateCreation
Source
ValidateEffect.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
ListEffect.scala

Attributes

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

create a correct value with warning

create a correct value with warning

Attributes

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

create a pure warning

create a pure warning

Attributes

Inherited from:
ValidateCreation
Source
ValidateEffect.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
Eff.scala
def wrong[R, E](e: E)(implicit m: MemberIn[[_] =>> Validate[E, _$8], R]): Eff[R, Unit]

create a failed value

create a failed value

Attributes

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

Attributes

Inherited from:
ChooseCreation
Source
Choose.scala