Class/Object

com.thoughtworks.dsl.keywords

Monadic

Related Docs: object Monadic | package keywords

Permalink

final case class Monadic[F[_], A](fa: F[A]) extends Keyword[Monadic[F, A], A] with Product with Serializable

A keyword for extracting monadic value from the monadic expression fa.

Source
Monadic.scala
To do

Monadic should be a scala.AnyVal after https://github.com/scala/bug/issues/10595 is resolved.

See also

com.thoughtworks.dsl.domains.scalaz for using this Monadic keyword with scalaz.Monad.

com.thoughtworks.dsl.domains.cats for using this Monadic keyword with cats.Monad.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Monadic
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Keyword
  7. AnyRef
  8. Any
Implicitly
  1. by implicitMonadic
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Monadic(fa: F[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to any2stringadd[Monadic[F, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Monadic[F, A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to ArrowAssoc[Monadic[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def apply[Domain](handler: (A) ⇒ Domain)(implicit dsl: Dsl[Monadic[F, A], Domain, A]): Domain

    Permalink

    An alias to cpsApply.

    An alias to cpsApply.

    Definition Classes
    Keyword
    Annotations
    @inline()
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def cpsApply[Domain](handler: (A) ⇒ Domain)(implicit dsl: Dsl[Monadic[F, A], Domain, A]): Domain

    Permalink
    Definition Classes
    Keyword
    Annotations
    @inline()
  10. def ensuring(cond: (Monadic[F, A]) ⇒ Boolean, msg: ⇒ Any): Monadic[F, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Ensuring[Monadic[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Monadic[F, A]) ⇒ Boolean): Monadic[F, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Ensuring[Monadic[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Monadic[F, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Ensuring[Monadic[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Monadic[F, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Ensuring[Monadic[F, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. val fa: F[A]

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to StringFormat[Monadic[F, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def unary_!: A

    Permalink
    Definition Classes
    Keyword
    Annotations
    @shift() @compileTimeOnly( ... )
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def [B](y: B): (Monadic[F, A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to ArrowAssoc[Monadic[F, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. final def apply[Domain](handler: (A) ⇒ Domain)(implicit dsl: Dsl[Monadic[[A]Monadic[F, A], A], Domain, A]): Domain

    Permalink

    An alias to cpsApply.

    An alias to cpsApply.

    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Monadic[[A]Monadic[F, A], A] performed by method implicitMonadic in com.thoughtworks.dsl.keywords.Monadic.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (monadic: Monadic[[A]Monadic[F, A], A]).apply(handler)(dsl)
    Definition Classes
    Keyword
    Annotations
    @inline()
  2. final def cpsApply[Domain](handler: (A) ⇒ Domain)(implicit dsl: Dsl[Monadic[[A]Monadic[F, A], A], Domain, A]): Domain

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Monadic[[A]Monadic[F, A], A] performed by method implicitMonadic in com.thoughtworks.dsl.keywords.Monadic.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (monadic: Monadic[[A]Monadic[F, A], A]).cpsApply(handler)(dsl)
    Definition Classes
    Keyword
    Annotations
    @inline()
  3. val fa: Monadic[F, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Monadic[[A]Monadic[F, A], A] performed by method implicitMonadic in com.thoughtworks.dsl.keywords.Monadic.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (monadic: Monadic[[A]Monadic[F, A], A]).fa
  4. final def unary_!: A

    Permalink
    Implicit information
    This member is added by an implicit conversion from Monadic[F, A] to Monadic[[A]Monadic[F, A], A] performed by method implicitMonadic in com.thoughtworks.dsl.keywords.Monadic.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (monadic: Monadic[[A]Monadic[F, A], A]).unary_!
    Definition Classes
    Keyword
    Annotations
    @shift() @compileTimeOnly( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Keyword[Monadic[F, A], A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion implicitMonadic from Monadic[F, A] to Monadic[[A]Monadic[F, A], A]

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

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

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

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

Ungrouped