Created
June 24, 2020 05:55
-
-
Save softberries/0aee5f37dd17f19479b65716c0d71d9f 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
def modifyShared(trace: Ref[IO, Shared], msg: String): IO[Unit] = { | |
for { | |
sh <- trace.get() | |
_ <- trace.set(Shared(sh, msg)) | |
} yield () | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment