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
| import shapeless._ // requires.shapeless | |
| import cats._, implicits._, data.Kleisli // requires.cats | |
| import cats.sequence._ //requires kittens | |
| import cats.effect.IO //requires cats-effect | |
| // ofc, uses "-Ypartial-unification" and kind-projector | |
| case class Result() // replace with the JDBC equivalent | |
| case class DB(val r: Result) { | |
| def nextInt: IO[Int] = ??? //IO(g.nextInt) |