Packages

  • package root
    Definition Classes
    root
  • package longevity

    a persistence framework for Scala and NoSQL

    a persistence framework for Scala and NoSQL

    Definition Classes
    root
  • package effect

    contains the Effect type class and instances

    contains the Effect type class and instances

    Definition Classes
    longevity
  • object Effect

    contains implicit Effect implementations for common effectful classes

    contains implicit Effect implementations for common effectful classes

    Definition Classes
    effect
  • Syntax

implicit class Syntax[F[_], A] extends AnyRef

provides object-oriented forwarders for Effect methods. if you have something like this:

implicit val effect: Effect[F] = ...
val fa: F[A] = ...
val f: A => B = ...

you can now say:

import longevity.effect.Effect.Syntax
val fb: F[B] = fa.map(f)

instead of:

val fb: F[B] = effect.map(fa)(f)
Source
Effect.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Syntax
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Syntax(fa: F[A])(implicit arg0: Effect[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to any2stringadd[Syntax[F, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Syntax[F, A], B)
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to ArrowAssoc[Syntax[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def ensuring(cond: (Syntax[F, A]) ⇒ Boolean, msg: ⇒ Any): Syntax[F, A]
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to Ensuring[Syntax[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Syntax[F, A]) ⇒ Boolean): Syntax[F, A]
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to Ensuring[Syntax[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Syntax[F, A]
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to Ensuring[Syntax[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Syntax[F, A]
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to Ensuring[Syntax[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap[B](f: (A) ⇒ F[B]): F[B]

    flatMap an F[A] to an F[B] according to function f with type A => F[B]

  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to StringFormat[Syntax[F, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def map[B](f: (A) ⇒ B): F[B]

    map an F[A] to an F[B] according to function f with type A => B

  21. def mapBlocking[B](f: (A) ⇒ B): F[B]

    map an F[A] to an F[B], using whatever means the effect has to perform potentially blocking operations.

    map an F[A] to an F[B], using whatever means the effect has to perform potentially blocking operations. for example, the effect may choose to perform the operation in a worker thread

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def run: A

    execute the effects and produce a result.

    execute the effects and produce a result. this is only used in the test frameworks, which need to execute effects to check the result

    See also

    longevity.test

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  31. def [B](y: B): (Syntax[F, A], B)
    Implicit
    This member is added by an implicit conversion from Syntax[F, A] to ArrowAssoc[Syntax[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Syntax[F, A] to any2stringadd[Syntax[F, A]]

Inherited by implicit conversion StringFormat from Syntax[F, A] to StringFormat[Syntax[F, A]]

Inherited by implicit conversion Ensuring from Syntax[F, A] to Ensuring[Syntax[F, A]]

Inherited by implicit conversion ArrowAssoc from Syntax[F, A] to ArrowAssoc[Syntax[F, A]]

Ungrouped