Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Last active May 14, 2020 02:07
Show Gist options
  • Save lu4nm3/0d19f19856e56183ea99e497472637ae to your computer and use it in GitHub Desktop.
Save lu4nm3/0d19f19856e56183ea99e497472637ae to your computer and use it in GitHub Desktop.
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