Move Showlines to logging to drop logging->collection dep

This commit is contained in:
Dale Wijnand 2017-06-23 14:06:53 +01:00
parent cc3f46f996
commit 2cc93f2382
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 0 additions and 15 deletions

View File

@ -1,15 +0,0 @@
package sbt.util
trait ShowLines[A] {
def showLines(a: A): Seq[String]
}
object ShowLines {
def apply[A](f: A => Seq[String]): ShowLines[A] =
new ShowLines[A] {
def showLines(a: A): Seq[String] = f(a)
}
implicit class ShowLinesOp[A: ShowLines](a: A) {
def lines: Seq[String] = implicitly[ShowLines[A]].showLines(a)
}
}