Skip to content

Commit

Permalink
remove monadic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdemarGr committed Mar 4, 2024
1 parent 316f8e9 commit 7762019
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/core/src/main/scala/hxl/Hxl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ object Hxl {
}
}

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

def runSequential[F[_]: Monad, A](node: Hxl[F, A]): F[A] = {
implicit val P: Parallel[F] = Parallel.identity[F]
Expand Down Expand Up @@ -222,10 +222,10 @@ object instances {
* Consider the difference between parallel composition of the Batch axis and the lifted effect axis
* Which one of the following do you want:
* Hxl[F, A] | F[A]
* Batch | Seq
* Batch | Par
* Seq | Seq
* Batch | Seq
* Seq | Par
* Seq | Seq
*
* With Hxl (applicative) then the Hxl axis is Batch, and ap / parAp controls the effect axis
* With HxlM (monad) then the Hxl axis is Seq and the effect axis is ambigious
Expand Down

0 comments on commit 7762019

Please sign in to comment.