RepositoryInterpreter

endless.core.interpret.RepositoryInterpreter
See theRepositoryInterpreter 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, ID, Alg[_[_]], RepositoryAlg[_[_]]](pureInterpreter: Sharding[F, ID, Alg] => RepositoryAlg[F]): RepositoryInterpreter[F, ID, Alg, RepositoryAlg]

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

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

Type parameters

Alg

entity algebra

F

effect type

ID

entity ID

RepositoryAlg

repository algebra

Value parameters

pureInterpreter

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

Attributes

Returns

repository algebra interpreter in context F