Skip to content

Instantly share code, notes, and snippets.

@mmollaverdi
Last active October 27, 2016 19:33
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 mmollaverdi/3a296e03cb28754e5bf5506507961085 to your computer and use it in GitHub Desktop.
Save mmollaverdi/3a296e03cb28754e5bf5506507961085 to your computer and use it in GitHub Desktop.
def getSystemStatusInfo[F[_]: Applicative](fetchSystem: F[System], fetchSystemStatus: F[SystemStatus]): F[SystemStatusInfo] = {
Applicative[F].map2(fetchSystem, fetchSystemStatus)((system, systemStatus) => SystemStatusInfo(system, systemStatus))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment