Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Last active May 14, 2020 02:07
Show Gist options
  • Save lu4nm3/258812ba42655106f987d1f537026304 to your computer and use it in GitHub Desktop.
Save lu4nm3/258812ba42655106f987d1f537026304 to your computer and use it in GitHub Desktop.
def main(): IO[(Vector[SystemState], SystemState)] = {
for {
monadReader <- createMonadReader(Env("127.0.0.1:8080"))
monadWriter <- createMonadWriter[Vector[SystemState]]
monadState <- createMonadState(SystemState(Map.empty[Env, Status]))
result <- program(monadReader, monadWriter, monadState)
} yield result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment