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