BehaviorInterpreter

endless.core.interpret.BehaviorInterpreter
See theBehaviorInterpreter companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def lift[F[_] : Applicative, S, E, Alg[_[_]]](pureInterpreter: Entity[[_] =>> EntityT[F, S, E, _$9], S, E] => Alg[[_] =>> EntityT[F, S, E, _$10]]): BehaviorInterpreter[F, S, E, Alg]

Lifts a pure interpreter into an EntityInterpreter (which is expressed in context F)

Lifts a pure interpreter into an EntityInterpreter (which is expressed in context F)

Type parameters

Alg

entity algebra

E

event

F

effect type

S

state

Value parameters

pureInterpreter

pure interpreter (i.e. it doesn't require any effect to create the algebra instance)

Attributes

Returns

entity algebra interpreter in context F