Skip to content

Commit

Permalink
Update Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Sep 28, 2023
1 parent 5d1d2d5 commit 3bd3ce5
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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.12"
```

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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml" % "0.0.12"
```

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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml-effect" % "0.0.12"
```

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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml-generic" % "0.0.12"
```
## 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@703fe6d5
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@6ffb41f8

implicit val decoderValueClass: Decoder[ValueClass] = deriveDecoder[ValueClass]
// decoderValueClass: Decoder[ValueClass] = cats.xml.codec.Decoder$$anonfun$of$2@578367f8
// decoderValueClass: Decoder[ValueClass] = cats.xml.codec.Decoder$$anonfun$of$2@5bd69454
implicit val decoderBar: Decoder[Bar] = deriveDecoder[Bar]
// decoderBar: Decoder[Bar] = cats.xml.codec.Decoder$$anonfun$of$2@36a4ff3e
// decoderBar: Decoder[Bar] = cats.xml.codec.Decoder$$anonfun$of$2@73368328
implicit val decoderFoo: Decoder[Foo] = deriveDecoder[Foo]
// decoderFoo: Decoder[Foo] = cats.xml.codec.Decoder$$anonfun$of$2@7e94eec2
// decoderFoo: Decoder[Foo] = cats.xml.codec.Decoder$$anonfun$of$2@65d3d74a

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@3de2b3e6
// typeInterpreterFoo: XmlTypeInterpreter[Foo] = cats.xml.generic.XmlTypeInterpreter$$anon$1@3f09e4eb

implicit val encoderValueClass: Encoder[ValueClass] = deriveEncoder[ValueClass]
// encoderValueClass: Encoder[ValueClass] = cats.xml.codec.DataEncoder$$anonfun$of$4@2caef66b
// encoderValueClass: Encoder[ValueClass] = cats.xml.codec.DataEncoder$$anonfun$of$4@78611fe1
implicit val encoderBar: Encoder[Bar] = deriveEncoder[Bar]
// encoderBar: Encoder[Bar] = cats.xml.codec.Encoder$$anonfun$of$2@7595ffc2
// encoderBar: Encoder[Bar] = cats.xml.codec.Encoder$$anonfun$of$2@373ee20
implicit val encoderFoo: Encoder[Foo] = deriveEncoder[Foo]
// encoderFoo: Encoder[Foo] = cats.xml.codec.Encoder$$anonfun$of$2@11d7a905
// encoderFoo: Encoder[Foo] = cats.xml.codec.Encoder$$anonfun$of$2@46d0ee31

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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml-standard" % "0.0.12"
```

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.11"
libraryDependencies += "com.github.geirolz" %% "cats-xml-xpath" % "0.0.12"
```

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$12089/0x00000008031620f8@5f200eb6]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$17190/0x0000000803dd1d28@4ebcc66f]
// )
```

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$12089/0x00000008031620f8@46eca587]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$17190/0x0000000803dd1d28@2872bdae]
// )
```

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$12089/0x00000008031620f8@637cdebe]
// value = /root[filter cats.xml.xpath.CursorBuilder$PredicateBuilder$$$Lambda$17190/0x0000000803dd1d28@26c27029]
// )

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

0 comments on commit 3bd3ce5

Please sign in to comment.