File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/core/src/main/scala/hxl Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments