Skip to content

Commit 7762019

Browse files
committed
remove monadic dependency
1 parent 316f8e9 commit 7762019

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/core/src/main/scala/hxl/Hxl.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ object Hxl {
8181
}
8282
}
8383

84-
def runPar[F[_]: Parallel, A](node: Hxl[F, A])(implicit F: Monad[F]): F[A] =
85-
node.foldMap(parallelRunner[F])
84+
def runPar[F[_]: Parallel, A](node: Hxl[F, A]): F[A] =
85+
node.foldMap(parallelRunner[F])(Parallel[F].monad)
8686

8787
def runSequential[F[_]: Monad, A](node: Hxl[F, A]): F[A] = {
8888
implicit val P: Parallel[F] = Parallel.identity[F]
@@ -222,10 +222,10 @@ object instances {
222222
* Consider the difference between parallel composition of the Batch axis and the lifted effect axis
223223
* Which one of the following do you want:
224224
* Hxl[F, A] | F[A]
225-
* Batch | Seq
226225
* Batch | Par
227-
* Seq | Seq
226+
* Batch | Seq
228227
* Seq | Par
228+
* Seq | Seq
229229
*
230230
* With Hxl (applicative) then the Hxl axis is Batch, and ap / parAp controls the effect axis
231231
* With HxlM (monad) then the Hxl axis is Seq and the effect axis is ambigious

0 commit comments

Comments
 (0)