scope

package scope

Members list

Concise view

Type members

Classlikes

trait InScope[S <: Scope]

Mark the child class as part of specified scope. Avoid hierarchies. Use this just as a convenient method to avoid the implicit val declaration.

Mark the child class as part of specified scope. Avoid hierarchies. Use this just as a convenient method to avoid the implicit val declaration.


 case class EntityModel(value: String)
 object EntityModel {
     implicit val mapper: ModelMapper[Scope.Persistence, EntityModel, DomainModel] =
       ModelMapper.scoped[Scope.Persistence]{ entity => ??? }
 }


 case class DomainModel(value: String)
 case class MyRepo() extends InScope[Scope.Persistence]{

     def foo = {
       val entity: EntityModel = ???
       val domain: DomainModel = entity.scoped.as[DomainModel]
     }
 }

Attributes

S

Scope type

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ModelMapperK[F[_], S <: Scope, A, B](val mapper: Kleisli[F, A, B])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ModelMapperK.type
trait Scope

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Scope

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Scope.type
sealed class ScopeContext

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed class TypedScopeContext[S <: Scope] extends ScopeContext

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
object syntax

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
syntax.type

Types

type ModelMapper[S <: Scope, A, B] = ModelMapperK[Id, S, A, B]