All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.chopsticks.fp.ZService.scala Maven / Gradle / Ivy

package dev.chopsticks.fp
import zio.Tag

import zio.{Has, URIO, ZIO}

object ZService {
  def get[V: Tag](env: Has[V]): V = {
    env.get[V]
  }

  def access[V: Tag]: URIO[Has[V], V] = {
    ZIO.access[Has[V]](_.get[V])
  }

  def apply[V: Tag]: URIO[Has[V], V] = {
    ZIO.access[Has[V]](_.get[V])
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy