From 47dd8a7330a7bb905961765987efd2203df19d7b Mon Sep 17 00:00:00 2001 From: Daniel Spiewak Date: Mon, 6 Jan 2020 17:27:32 -0700 Subject: [PATCH] Binary compatibility silliness --- free/src/main/scala/cats/free/FreeT.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/free/src/main/scala/cats/free/FreeT.scala b/free/src/main/scala/cats/free/FreeT.scala index 916f8bc03f..80b290d7fe 100644 --- a/free/src/main/scala/cats/free/FreeT.scala +++ b/free/src/main/scala/cats/free/FreeT.scala @@ -222,7 +222,8 @@ object FreeT extends FreeTInstances { sealed abstract private[free] class FreeTInstances extends FreeTInstances0 { // retained for binary compatibility. its results are incorrect though and it would fail the laws if we generated things of the form pure(()).flatMap(_ => fa) - private[this] def catsFreeMonadErrorForFreeT[S[_], M[_], E]( + @deprecated("does not handle errors beyond the head suspension; use catsFreeMonadErrorForFreeT2", "2.1.0") + def catsFreeMonadErrorForFreeT[S[_], M[_], E]( implicit E: MonadError[M, E] ): MonadError[FreeT[S, M, *], E] = new MonadError[FreeT[S, M, *], E] with FreeTMonad[S, M] {