This file contains hidden or 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
//> using toolkit typelevel:default | |
import cats.effect.* | |
object Hello extends IOApp.Simple: | |
def run = | |
val server = for { | |
given Database <- Postgres.build | |
given UserRepo <- DefaultUserRepo.build | |
given UserService <- DefaultUserService.build |
This file contains hidden or 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
//> using scala 3.4.2 | |
//> using dep com.github.ghostdogpr::caliban:2.8.1 | |
//> using dep com.github.ghostdogpr::caliban-quick:2.8.1 | |
import zio.* | |
import zio.query.ZQuery | |
import caliban.* | |
import caliban.schema.Schema.auto.* | |
import caliban.quick.* |