Created
February 11, 2020 12:28
-
-
Save dnaumenko/27f7a0384d3df25adb6cd6881c21685f to your computer and use it in GitHub Desktop.
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
| trait Env[Ctx, +A] { | |
| def run: RIO[Ctx, A] | |
| // basic transformations | |
| def map[B](f: A => B): Env[Ctx, B] | |
| def flatMap[B](f: A => Env[Ctx, B]): Env[Ctx, B] | |
| def void: Env[Ctx, Unit] = map(_ => ()) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment