Last active
May 14, 2020 02:07
-
-
Save lu4nm3/0d19f19856e56183ea99e497472637ae 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 MonadWriter[F[_], L] { | |
val monad: Monad[F] | |
def tell(l: L): F[Unit] | |
def logs: F[L] | |
} | |
trait MonadState[F[_], S] { | |
val monad: Monad[F] | |
def get: F[S] | |
def set(s: S): F[Unit] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment