Skip to content

Commit

Permalink
Fix mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Jacobowitz committed Aug 28, 2017
1 parent d62e1e2 commit e72b087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/cats/Parallel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ package cats
* Some types that form a Monad, are also capable of forming an Applicative that supports parallel composition.
* The Parallel type class allows us to represent this relationship.
*/
trait Parallel[M[_], F[_]] {
trait Parallel[M[_], F[_]] extends Serializable {
/**
* The applicative instance for F[_]
*/
def applicative: Applicative[F]

/**
* Natural Transformation from the sequential Monad M[_] to the parallel Applicative F[_].
* Natural Transformation from the parallel Applicative F[_] to the sequential Monad M[_].
*/
def sequential(implicit M: Monad[M]): F ~> M

/**
* Natural Transformation from the parallel Applicative F[_] to the sequential Monad M[_].
* Natural Transformation from the sequential Monad M[_] to the parallel Applicative F[_].
*/
def parallel(implicit M: Monad[M]): M ~> F
}
Expand Down

0 comments on commit e72b087

Please sign in to comment.