CsvSink

kantan.csv.CsvSink
See theCsvSink companion trait
object CsvSink

Provides default instances as well as instance summoning and creation methods.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CsvSink.type

Members list

Value members

Concrete methods

def apply[A](implicit ev: CsvSink[A]): CsvSink[A]

Summons an implicit instance of CsvSink[A] if one can be found.

Summons an implicit instance of CsvSink[A] if one can be found.

This is simply a convenience method. The two following calls are equivalent:

 val file: CsvSink[File] = CsvSink[File]
 val file2: CsvSink[File] = implicitly[CsvSink[File]]

Attributes

def from[A](f: A => Writer): CsvSink[A]

Turns the specified function into a CsvSink.

Turns the specified function into a CsvSink.

Note that it's usually better to compose an existing instance through CsvSink.contramap rather than create one from scratch.

Attributes

Implicits

Implicits

implicit def fromResource[A : WriterResource]: CsvSink[A]