From 8db698855e43ed128b349499dc00056555a29769 Mon Sep 17 00:00:00 2001 From: Aleksander Rainko Date: Thu, 28 Mar 2024 21:44:30 +0100 Subject: [PATCH] reintroduce `Transformer.Debug` --- .../main/scala/io/github/arainko/ducktape/Transformer.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ducktape/src/main/scala/io/github/arainko/ducktape/Transformer.scala b/ducktape/src/main/scala/io/github/arainko/ducktape/Transformer.scala index 1fda0662..1a153e78 100644 --- a/ducktape/src/main/scala/io/github/arainko/ducktape/Transformer.scala +++ b/ducktape/src/main/scala/io/github/arainko/ducktape/Transformer.scala @@ -46,9 +46,14 @@ object Transformer { Derived.FromFunction(source => FallibleTransformations.between[F, Source, Dest](source, F, "definition")) } + object Debug { + inline def showCode[A](inline value: A): A = internal.CodePrinter.code(value) + } + @deprecated(message = "Use io.github.arainko.ducktape.Mode instead", since = "ducktape 0.2.0-M3") type Mode[F[+x]] = io.github.arainko.ducktape.Mode[F] @deprecated(message = "Use io.github.arainko.ducktape.Mode instead", since = "ducktape 0.2.0-M3") val Mode = io.github.arainko.ducktape.Mode + }