diff --git a/cookbooks/jq/index.html b/cookbooks/jq/index.html index fa0d20f3..b150b650 100644 --- a/cookbooks/jq/index.html +++ b/cookbooks/jq/index.html @@ -141,8 +141,8 @@
import fs2.data.json.jq.Compiler
val queryCompiler = Compiler[IO]
-// queryCompiler: Compiler[IO] = fs2.data.json.jq.internal.ESPJqCompiler@8965e66
+// queryCompiler: Compiler[IO] = fs2.data.json.jq.internal.ESPJqCompiler@d920a7c
val queryPipe = queryCompiler.compile(query).unsafeRunSync()
// queryPipe: fs2.package.Pipe[IO, json.Token, json.Token] = <function1>
diff --git a/cookbooks/jsonlines/index.html b/cookbooks/jsonlines/index.html
index 2a716d91..2538859a 100644
--- a/cookbooks/jsonlines/index.html
+++ b/cookbooks/jsonlines/index.html
@@ -123,8 +123,8 @@
The generic derivation for cell decoders also supports renaming and deriving instances for unary product types (case classes with one field):
@@ -213,9 +213,9 @@import fs2.data.csv.generic.semiauto._
implicit val MyRowDecoder: CsvRowDecoder[MyRow, String] = deriveCsvRowDecoder[MyRow]
-// MyRowDecoder: CsvRowDecoder[MyRow, String] = fs2.data.csv.generic.internal.DerivedCsvRowDecoder$$anon$1@1afc5154
+// MyRowDecoder: CsvRowDecoder[MyRow, String] = fs2.data.csv.generic.internal.DerivedCsvRowDecoder$$anon$1@584ca95
val decoded = stream.through(decodeUsingHeaders[MyRow]())
// decoded: Stream[[x]Fallible[x], MyRow] = Stream(..)
diff --git a/documentation/csv/index.html b/documentation/csv/index.html
index bc7b263a..f1fd1a5a 100644
--- a/documentation/csv/index.html
+++ b/documentation/csv/index.html
@@ -123,8 +123,8 @@
- cbor-json
- Introduction
- cookbooks
- - Handling JSON Lines data
- Reading/transforming/writing JSON data
+ - Handling JSON Lines data
CellEncoder
, it is even easier to define your own as encoding can't fail, so basically it's just a function A => String
. The easiest ways to roll your own are using Scala's single abstract method sugar:
case class Wrapper(content: String)
implicit val wrapperCellEncoder: CellEncoder[Wrapper] = (w: Wrapper) => w.content
-// wrapperCellEncoder: CellEncoder[Wrapper] = repl.MdocSession$MdocApp$$anonfun$9@6bae367f
+or using contramap
on an existing encoder:
implicit val wrapperCellEncoder2: CellEncoder[Wrapper] = CellEncoder[String].contramap(_.content)
-// wrapperCellEncoder2: CellEncoder[Wrapper] = fs2.data.csv.CellEncoder$$anonfun$contramap$2@2a63b795
+// wrapperCellEncoder2: CellEncoder[Wrapper] = fs2.data.csv.CellEncoder$$anonfun$contramap$2@2ecbdbc2
RowDecoder
& RowEncoder
RowDecoder
s can be used to decode an entire CSV row based on field positions. For instance if you want to decode the CSV data into shapeless HList
: