Created
April 1, 2014 00:06
-
-
Save pedrofurla/9905079 to your computer and use it in GitHub Desktop.
An instance of the scalaz.Show time class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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