CpsThrowMonadInstanceContext
Minimal monad context, which provides an instance of CpsThrowMonad. Use it if your monad supports throw operation but not try/catch.
Attributes
- Source
- CpsMonadContext.scala
- Graph
-
- Supertypes
-
trait CpsThrowMonad[F]trait CpsThrowSupport[F]trait CpsMonad[F]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Type members
Types
Attributes
- Source
- CpsMonadContext.scala
Inherited types
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala
Value members
Concrete methods
run op in the context environment.
Inherited methods
Wrap and flatten of monadic expression..
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala
Inherited and Abstract methods
represent error e
in monadic context.
represent error e
in monadic context.
Attributes
- Inherited from:
- CpsThrowSupport
- Source
- CpsMonad.scala
bind combinator, which compose f
over fa
map a function f
over fa
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala