tofu-tf / tofu

Functional programming toolbox
https://tofu-tf.github.io/tofu/
Apache License 2.0
534 stars 93 forks source link

fix: non-dummy writeMarker in Logging RepresentableK instance in Scala 3 #1323

Closed susliko closed 1 month ago

susliko commented 1 month ago

In tofu-logging for Scala 3 a RepresentableK instance for Logging is not derived but is defined manually.

That instance does not override writeMarker method, but the default writeMarker implementation ignores markers.

It can result in marker-erasing implementation for Logs if they were constructed using Mid.attach