You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Foo` can also be a newtype in form of [estatico](https://github.com/estatico/scala-newtype) or [supertagged](https://github.com/rudogma/scala-supertagged) libraries.
31
31
32
-
If you have problems with the initialization order you can optionally put the
32
+
If you have problems with the initialization order you can optionally put the
33
33
`insertInstancesHere()` call to the body of your companion object to specify the place where `implicit val`s should be inserted.
34
34
35
35
@@ -64,11 +64,11 @@ In this case you should extend `SpecificDerivation` instead, like `object foo ex
|`@derive(...foo, ...)`|`implicit val foo$macro: Foo[A] = foo.instance`|
70
-
|`@derive(...foo(bar))`|`implicit val foo$macro : Foo[A] = foo(bar)`|
71
-
|`@derive(...foo.quux(bar))`|`implicit val foo$macro : Foo[A] = foo.quux(bar)`|
70
+
|`@derive(...foo(bar))`|`implicit val foo$macro : Foo[A] = foo(bar)`|
71
+
|`@derive(...foo.quux(bar))`|`implicit val foo$macro : Foo[A] = foo.quux(bar)`|
72
72
|`@derive(...foo, ...)` when `A` is a newtype over `B`|`implicit val foo$macro: Foo[A] = foo.newtype[B].instance`|
73
73
74
74
@@ -78,7 +78,7 @@ In this case you should extend `SpecificDerivation` instead, like `object foo ex
78
78
This works by adding the `@delegating` annotation to your delegator object:
79
79
```scala
80
80
@delegating("full.qualified.method.path")
81
-
```
81
+
```
82
82
Then call `macro Derevo.delegate`, `macro Derevo.delegateParams`, `macro Derevo.delegateParams2` or `macro Derevo.delegateParams3` in the corresponding methods.
83
83
An example can be found [here](https://github.com/tofu-tf/derevo/blob/supertagged/circe/src/main/scala/derevo/circe/circe.scala).
84
84
@@ -109,7 +109,7 @@ libraryDependencies += "tf.tofu" %% "derevo-cats" % "latest version in badge"
0 commit comments