From e814bf730635744457999a5644ca959f05e08058 Mon Sep 17 00:00:00 2001 From: Daniel Spiewak Date: Sun, 22 Dec 2019 23:27:09 -0600 Subject: [PATCH] Publicize Free#foldStep --- free/src/main/scala/cats/free/Free.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/free/src/main/scala/cats/free/Free.scala b/free/src/main/scala/cats/free/Free.scala index 79aacb49a6..ec2ae46608 100644 --- a/free/src/main/scala/cats/free/Free.scala +++ b/free/src/main/scala/cats/free/Free.scala @@ -70,9 +70,10 @@ sealed abstract class Free[S[_], A] extends Product with Serializable { } /** - * A combination of step and fold. + * A combination of step and fold. May be used to define interpreters with custom + * (non-monoidial) control flow. */ - final private[free] def foldStep[B]( + final def foldStep[B]( onPure: A => B, onSuspend: S[A] => B, onFlatMapped: ((S[X], X => Free[S, A]) forSome { type X }) => B