CpsLogicStreamSyncMonad
Attributes
- Graph
-
- Supertypes
-
trait CpsSyncLogicMonad[LogicStream]trait CpsLogicStreamMonadBase[CpsIdentity]trait CpsLogicMonad[LogicStream]trait CpsTryMonad[LogicStream]trait CpsTrySupport[LogicStream]trait CpsThrowMonad[LogicStream]trait CpsThrowSupport[LogicStream]trait CpsMonad[LogicStream]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Type members
Types
Monad, which can be used to observe values of computation and can be used in map/flatMap/... operations. Usefull for cases, where we should mix logic and async operations. If implementation is LogicStream[F[_],A], that Observer is F[_].
Monad, which can be used to observe values of computation and can be used in map/flatMap/... operations. Usefull for cases, where we should mix logic and async operations. If implementation is LogicStream[F[_],A], that Observer is F[_].
Attributes
Inherited types
Attributes
- Inherited from:
- CpsLogicMonadInstanceContext
Value members
Concrete methods
Attributes
- Definition Classes
Inherited methods
run op in the context environment.
run op in the context environment.
Attributes
- Definition Classes
-
CpsLogicMonadInstanceContext -> CpsMonad
- Inherited from:
- CpsLogicMonadInstanceContext
empty solution set. (same as 'mzero')
represent error e
in monadic context.
represent error e
in monadic context.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Can be viewed as fair And
-- flatMap results are mixed over the all choices in ma
Can be viewed as fair And
-- flatMap results are mixed over the all choices in ma
- in haskell LogicT
Attributes
- Inherited from:
- CpsLogicMonad
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
Attributes
- Definition Classes
-
CpsLogicStreamMonadBase -> CpsMonad
- Inherited from:
- CpsLogicStreamMonadBase
flatMap over result of checked evaluation of A
flatMap over result of checked evaluation of A
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Wrap and flatten of monadic expression..
Wrap and flatten of monadic expression..
Attributes
- Inherited from:
- CpsMonad
Attributes
- Inherited from:
- CpsMonad
Flatten observer into computation.
Flatten observer into computation.
Value parameters
- fma
-
- observer to flatten
Attributes
- Returns
-
- computation, which adopt observer wrapper
- Definition Classes
- Inherited from:
- CpsSyncLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
transform r
into pure value or error.
transform r
into pure value or error.
Attributes
- Inherited from:
- CpsTryMonad
Split computation into part, which return as first value and rest of computation and return this as observer.
Split computation into part, which return as first value and rest of computation and return this as observer.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
ifte -- if/then/else which works not on boolean condition, but on existence of values in computation.
ifte -- if/then/else which works not on boolean condition, but on existence of values in computation.
Value parameters
- a
-
- computation to check
- elsep
-
- what to do if
a
is empty
- what to do if
- thenp
-
- what to do after
a
- what to do after
Attributes
- Inherited from:
- CpsLogicMonad
Can be viewed as fair Or
-- values from both computations are interleaved
Can be viewed as fair Or
-- values from both computations are interleaved
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
map a function f
over fa
map a function f
over fa
Attributes
- Definition Classes
-
CpsLogicStreamMonadBase -> CpsMonad
- Inherited from:
- CpsLogicStreamMonadBase
map over result of checked evaluation of A
map over result of checked evaluation of A
Attributes
- Inherited from:
- CpsTryMonad
synonym for flatMapTry needed for processing awaits inside mapTry.
synonym for flatMapTry needed for processing awaits inside mapTry.
Attributes
- Inherited from:
- CpsTryMonad
mplus in haskell LogicT Synonym for 'orElse'.
mplus in haskell LogicT Synonym for 'orElse'.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Split computation into part, which return as first value and rest of computation and return this as logic stream.
Split computation into part, which return as first value and rest of computation and return this as logic stream.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
mzero in haskell LogicT Synonym for 'empty'.
mzero in haskell LogicT Synonym for 'empty'.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
get the first value of computation, discarding all other. head of the list, or soft cut in prolog (scoped inside current computation).
get the first value of computation, discarding all other. head of the list, or soft cut in prolog (scoped inside current computation).
Attributes
- Inherited from:
- CpsLogicMonad
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
- Definition Classes
-
CpsLogicStreamMonadBase -> CpsMonad
- Inherited from:
- CpsLogicStreamMonadBase
restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.
restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.
Attributes
- Inherited from:
- CpsTryMonad
Create a computation, which explore a
and then
b
end do not start evaluation of b
until all values or a
are explored.
Create a computation, which explore
a
and then
b
end do not start evaluation of b
until all values or a
are explored.
Synonym for MonadPlus 'mplus' or Alternative '<|>' in haskell.
Attributes
Attributes
-
Definition Classes
-
Inherited from:
-
CpsLogicStreamMonadBase
try to evaluate async operation and wrap successful or failed result into F
.
try to evaluate async operation and wrap successful or failed result into F
.
Attributes
-
Inherited from:
-
CpsTryMonad
try to evaluate synchonious operation and wrap successful or failed result into F
.
try to evaluate synchonious operation and wrap successful or failed result into F
.
Attributes
-
Inherited from:
-
CpsTryMonad
async shift of tryPure.
async shift of tryPure.
Attributes
-
Inherited from:
-
CpsTryMonad
Attributes
-
Inherited from:
-
CpsLogicMonad
ensure that action
will run before getting value from fa
ensure that action
will run before getting value from fa
Attributes
-
Inherited from:
-
CpsTryMonad
async shift of withAction
.
async shift of withAction
.
This method is substituted instead withAction, when we use await
inside withAction
argument.
Attributes
-
Inherited from:
-
CpsTryMonad
return result of fa
after completition of action
.
return result of fa
after completition of action
.
Attributes
-
Inherited from:
-
CpsTryMonad
Attributes
-
Inherited from:
-
CpsTrySupport
Attributes
-
Inherited from:
-
CpsTrySupport
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
Concrete fields
instance of observer cps monad.
instance of observer cps monad.
Attributes