Basic CpsMonad operations. Implementing this typeclass is enough to use async/await with supports of basic control-flow constructions (if, loops, but no exceptions).
- Companion:
- object
- Source:
- CpsMonad.scala
class FutureAsyncMonadAPI
trait CpsEffectMonad[F]
trait CpsAsyncEffectMonad[F]
trait CpsConcurrentEffectMonad[F]
trait CpsMonadInstanceContext[F]
object FreeCpsMonad.type
object JSFutureCpsMonad.type
trait CpsTryMonad[F]
trait CpsAsyncMonad[F]
trait CpsConcurrentMonad[F]
trait CpsSchedulingMonad[F]
Type members
Value members
Abstract methods
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
- Source:
- CpsMonad.scala
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
- Source:
- CpsMonad.scala
Concrete methods
Lazy variant of pure, which by default - create monadic expression according to the choosen monad types. (i.e. delaing for effect monads, starting for eager monand, pure by defiault)
Lazy variant of pure, which by default - create monadic expression according to the choosen monad types. (i.e. delaing for effect monads, starting for eager monand, pure by defiault)
- Source:
- CpsMonad.scala