Created
February 11, 2020 12:39
-
-
Save dnaumenko/ce0610ca109b8d815dfa9892b0d42e15 to your computer and use it in GitHub Desktop.
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
object EnvFinalTaglessTest extends App { | |
import com.example.functional.env.catz._ | |
def buildProgram[F[_] : Sync]: F[Unit] = { | |
import cats.implicits._ | |
for { | |
_ <- Sync[F].delay(println("Starting")) | |
_ <- Sync[F].delay(println("Finished")) | |
} yield () | |
} | |
buildProgram[Env[ExampleEnv, ?]].unsafeRunSync(ExampleEnv("test")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment