Skip to content

Commit

Permalink
Binary compatibility silliness
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Jan 7, 2020
1 parent ccdc687 commit 47dd8a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion free/src/main/scala/cats/free/FreeT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down

0 comments on commit 47dd8a7

Please sign in to comment.