Skip to content

Instantly share code, notes, and snippets.

@pedrofurla
Created April 1, 2014 00:06
Show Gist options
  • Select an option

  • Save pedrofurla/9905079 to your computer and use it in GitHub Desktop.

Select an option

Save pedrofurla/9905079 to your computer and use it in GitHub Desktop.
An instance of the scalaz.Show time class
import scalaz.Show._
import scalaz.Show
implicit val reportline2show: Show[ReportLine] = shows { rl =>
val unitName = rl.timeUnit.name
s"Rows: ${rl.rows}, totalTime: ${rl.time} $unitName, time per row: ${rl.timePerRow} $unitName"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment