Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Last active May 14, 2020 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lu4nm3/d4e9a22b584809485bb8d325df55448b to your computer and use it in GitHub Desktop.
Save lu4nm3/d4e9a22b584809485bb8d325df55448b to your computer and use it in GitHub Desktop.
sealed trait Status
case object Healthy extends Status
case object Degraded extends Status
case object Unavailable extends Status
case class Env(serverUrl: String)
case class SystemState(value: Map[Env, Status])
def getServerStatus[F[_]](): Env => F[Status] = ???
def alertAdmin[F[_]](status: Status): Env => F[Unit] = ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment