CpsMonadInstanceContext
Trait for minimal monad context, which provides an instance of CpsMonad. Mixin this trait into your monad in cases, when you monad have no internal API.
- Source:
- CpsMonadContext.scala
Type members
Types
Inherited types
Value members
Concrete methods
If is it statically known, that monad is evaluated in this context, then this call is completely eliminated by dotty-cps-async macro
If is it statically known, that monad is evaluated in this context, then this call is completely eliminated by dotty-cps-async macro
- Returns:
fa
- Source:
- CpsMonadContext.scala
Inherited methods
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
- Inherited from:
- CpsMonad
- 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.
- Inherited from:
- CpsMonad
- Source:
- CpsMonad.scala