Last active
September 14, 2018 09:56
-
-
Save mmenestret/78ffe12a1e2aa347d4b8f171c2dbdbf7 to your computer and use it in GitHub Desktop.
Local effect elimination
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
type Task[A] = IO[Throwable, A] | |
def createMonadState[S]: Task[MonadState[Task, S]] = ??? | |
def myLocalState[F[_]: MonadState[?, MyStateType]]: F[Boolean] = ??? | |
for { | |
monadState <- createMonadState[MyStateType] | |
result <- myLocalState[MyIO](monadState) | |
} yield result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment