Skip to content

Commit

Permalink
Merge pull request #883 from ceedubs/app-sequence
Browse files Browse the repository at this point in the history
Delegate to Traverse.sequence in Applicative.sequence
  • Loading branch information
adelbertc committed Feb 17, 2016
2 parents 8c35756 + fd32422 commit 6fe593d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/Applicative.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import simulacrum.typeclass
def traverse[A, G[_], B](value: G[A])(f: A => F[B])(implicit G: Traverse[G]): F[G[B]] =
G.traverse(value)(f)(this)

def sequence[G[_]: Traverse, A](as: G[F[A]]): F[G[A]] =
traverse(as)(a => a)
def sequence[G[_], A](as: G[F[A]])(implicit G: Traverse[G]): F[G[A]] =
G.sequence(as)(this)

}

Expand Down

0 comments on commit 6fe593d

Please sign in to comment.