mirror of https://github.com/sbt/sbt.git
Move Showlines to logging to drop logging->collection dep
This commit is contained in:
parent
cc3f46f996
commit
2cc93f2382
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue