Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Make *KeyReader generic once accessible macro starts to support generic E and O #7

Open
bmarinovic opened this issue Jan 8, 2020 · 0 comments

Comments

@bmarinovic
Copy link
Contributor

Currently, accessible zio-macro does not support generic E and O types in Service: zio-archive/zio-macros#60

Once this is fixed, KeyReaders should be abstracted, being polymorphic in output type:

@accessible(">")
trait KeyReader[A] {
  val serviceAccountKeyReader: KeyReader.Service[Any, A]
}



object KeyReader {
  trait Service[R, A] {
    def readKey(path: String): ZIO[R, KeyError, A]
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant