Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed May 2, 2023
1 parent 27b06e1 commit cfa06b1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
A functional library to work with XML in Scala using cats core.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.9"
```

This library is not production ready yet. There is a lot of work to do to complete it:
Expand Down
2 changes: 1 addition & 1 deletion docs/compiled/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
A functional library to work with XML in Scala using cats core.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.9"
```

This library is not production ready yet. There is a lot of work to do to complete it:
Expand Down
2 changes: 1 addition & 1 deletion docs/compiled/effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add cats-effect support.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml-effect" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml-effect" % "0.0.9"
```

Use
Expand Down
18 changes: 9 additions & 9 deletions docs/compiled/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
At the moment supported only for Scala 2.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml-generic" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml-generic" % "0.0.9"
```
## XmlTypeInterpreter
Expand Down Expand Up @@ -48,14 +48,14 @@ implicit val typeInterpreterFoo: XmlTypeInterpreter[Foo] =
.overrideType(
_.param(_.valueClass) -> XmlElemType.Attribute
)
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@5a45c7c5
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@38d08357

implicit val decoderValueClass: Decoder[ValueClass] = deriveDecoder[ValueClass]
// decoderValueClass: Decoder[ValueClass] = cats.xml.codec.Decoder$$anonfun$of$2@7284d57c
// decoderValueClass: Decoder[ValueClass] = cats.xml.codec.Decoder$$anonfun$of$2@1ef71a8e
implicit val decoderBar: Decoder[Bar] = deriveDecoder[Bar]
// decoderBar: Decoder[Bar] = cats.xml.codec.Decoder$$anonfun$of$2@211661e3
// decoderBar: Decoder[Bar] = cats.xml.codec.Decoder$$anonfun$of$2@aaa57dd
implicit val decoderFoo: Decoder[Foo] = deriveDecoder[Foo]
// decoderFoo: Decoder[Foo] = cats.xml.codec.Decoder$$anonfun$of$2@578ce8de
// decoderFoo: Decoder[Foo] = cats.xml.codec.Decoder$$anonfun$of$2@3a48d9c3

XmlNode("foo")
.withAttributes(
Expand Down Expand Up @@ -87,14 +87,14 @@ implicit val typeInterpreterFoo: XmlTypeInterpreter[Foo] =
.overrideType(
_.param(_.valueClass) -> XmlElemType.Attribute
)
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@7778683c
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@203b76c5

implicit val encoderValueClass: Encoder[ValueClass] = deriveEncoder[ValueClass]
// encoderValueClass: Encoder[ValueClass] = cats.xml.codec.DataEncoder$$anonfun$of$4@65f31649
// encoderValueClass: Encoder[ValueClass] = cats.xml.codec.DataEncoder$$anonfun$of$4@7877d9a0
implicit val encoderBar: Encoder[Bar] = deriveEncoder[Bar]
// encoderBar: Encoder[Bar] = cats.xml.codec.Encoder$$anonfun$of$2@5509c831
// encoderBar: Encoder[Bar] = cats.xml.codec.Encoder$$anonfun$of$2@40d91ac
implicit val encoderFoo: Encoder[Foo] = deriveEncoder[Foo]
// encoderFoo: Encoder[Foo] = cats.xml.codec.Encoder$$anonfun$of$2@6d02afcb
// encoderFoo: Encoder[Foo] = cats.xml.codec.Encoder$$anonfun$of$2@733b4fc4

Foo(
primitiveField = 1d,
Expand Down
2 changes: 1 addition & 1 deletion docs/compiled/standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add standard scala XML interop support.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml-standard" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml-standard" % "0.0.9"
```

Use
Expand Down
8 changes: 4 additions & 4 deletions docs/compiled/xpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add XPath support.

```sbt
libraryDependencies += "com.github.geirolz" %% "cats-xml-xpath" % "0.0.8"
libraryDependencies += "com.github.geirolz" %% "cats-xml-xpath" % "0.0.9"
```

With this module you can create `NodeCursor`s instances using XPath.
Expand All @@ -16,7 +16,7 @@ import cats.xml.xpath.implicits.*

val cursor: Either[XPathError, NodeCursor] = NodeCursor.fromXPath("/root[@id='1']")
// cursor: Either[XPathError, NodeCursor] = Right(
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$24199/0x00000008046eb028@470c4e0b]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$15700/0x00000008033d65a0@5a60c2a6]
// )
```

Expand All @@ -28,7 +28,7 @@ import cats.xml.xpath.implicits.*

val cursor: Either[XPathError, NodeCursor] = xpath"/root[@id='1']"
// cursor: Either[XPathError, NodeCursor] = Right(
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$24199/0x00000008046eb028@144843bc]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$15700/0x00000008033d65a0@6f97ebd1]
// )
```

Expand All @@ -45,7 +45,7 @@ import cats.xml.xpath.implicits.*

val cursor: Either[XPathError, NodeCursor] = xpath"/root[@id='1']"
// cursor: Either[XPathError, NodeCursor] = Right(
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$24199/0x00000008046eb028@5ba95e2c]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$15700/0x00000008033d65a0@23401cdf]
// )

val data = XmlNode("wrapper").withChildren(
Expand Down

0 comments on commit cfa06b1

Please sign in to comment.