diff --git a/cookbooks/jq/index.html b/cookbooks/jq/index.html index 47ae87b42..fd330084f 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@657730f8
+// queryCompiler: Compiler[IO] = fs2.data.json.jq.internal.ESPJqCompiler@25708dd4
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 2538859a5..2a716d911 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@5c124346
+// MyRowDecoder: CsvRowDecoder[MyRow, String] = fs2.data.csv.generic.internal.DerivedCsvRowDecoder$$anon$1@6352e406
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 b49344785..970124be3 100644
--- a/documentation/csv/index.html
+++ b/documentation/csv/index.html
@@ -123,8 +123,8 @@
- cbor-json
- Introduction
- cookbooks
- - Reading/transforming/writing JSON data
- Handling JSON Lines data
+ - Reading/transforming/writing JSON 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@69abfce1
+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@3540d9d0
+// wrapperCellEncoder2: CellEncoder[Wrapper] = fs2.data.csv.CellEncoder$$anonfun$contramap$2@79f84cc5
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
: