Oℕ
Size: a a a
Oℕ
Oℕ
AK
Oℕ
DM
Oℕ
DM
Oℕ
KS
case class Cfg1(a: Int)
case class Cfg2(b: String)
case class Config(a: Cfg1, b: Cfg2)
implicit val ref: Ref[F, Config] = ???
class Service1[F[_]](implicit fCfg1: F[Cfg1])
class Service2[F[_]](implicit fCfg2: F[Cfg2])
DM
DM
case class Cfg1(a: Int)
case class Cfg2(b: String)
case class Config(a: Cfg1, b: Cfg2)
implicit val ref: Ref[F, Config] = ???
class Service1[F[_]](implicit fCfg1: F[Cfg1])
class Service2[F[_]](implicit fCfg2: F[Cfg2])
AK
KS
ref.get.map(_.a)
и получить то, что нужноAK
DM
Oℕ
case class Cfg1(a: Int)
case class Cfg2(b: String)
case class Config(a: Cfg1, b: Cfg2)
implicit val ref: Ref[F, Config] = ???
class Service1[F[_]](implicit fCfg1: F[Cfg1])
class Service2[F[_]](implicit fCfg2: F[Cfg2])
Oℕ
Oℕ