This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait DataSourceComponent { | |
val source: DataSource | |
trait DataSource { | |
def getData: List[Int] | |
} | |
} | |
trait HttpRequestComponent { | |
val http: HttpRequest | |
trait HttpRequest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz.zio.console.Console | |
import scalaz.zio._ | |
// "org.scalaz" %% "scalaz-zio" % "1.0-RC3" | |
sealed trait AppError | |
case object NoValue extends AppError | |
trait Logger { val logger: Logger.Service } | |
object Logger { |