Skip to content

Commit

Permalink
Removed mixed bounds syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Feb 4, 2020
1 parent 6018180 commit 3d9303a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion free/src/main/scala/cats/free/FreeT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sealed abstract class FreeT[S[_], M[_], A] extends Product with Serializable {
* Modify the context `M` using the transformation `mn`, flattening the free
* suspensions into the outer.
*/
def flatMapK[N[_]: Monad](mn: M ~> FreeT[S, N, *])(implicit S: Functor[S]): FreeT[S, N, A] = {
def flatMapK[N[_]](mn: M ~> FreeT[S, N, *])(implicit S: Functor[S], N: Monad[N]): FreeT[S, N, A] = {
def loop(ftft: FreeT[S, FreeT[S, N, *], A]): FreeT[S, N, A] =
ftft.resume.flatMap { e =>
e.fold(sft => FreeT.liftF[S, N, FreeT[S, FreeT[S, N, *], A]](sft).flatMap(loop(_)), a => FreeT.pure(a))
Expand Down

0 comments on commit 3d9303a

Please sign in to comment.