kitlangton / parallel-for

Automatically parallelize your for-comprehensions at compile time.
Apache License 2.0
130 stars 10 forks source link

Monix support #3

Open kitlangton opened 2 years ago

kitlangton commented 2 years ago

I suppose this is also supported via #7 :)

(though anyone is welcome to making a monix specific module)

hejfelix commented 2 years ago

I don't think https://github.com/kitlangton/parallel-for/pull/7 solves this in it's current state -- I made it concretely for IO and not using the type classes. I can make another PR using the type classes to allow this to be used with e.g. Monix :) but I think this should be revived.

kitlangton commented 2 years ago

Sounds good! Tis opened :)

hejfelix commented 2 years ago

I did some experimenting, and the macro fails in various ways when you are coding against the typeclass. I was unable to figure this out, unfortunately. It seems to me, that the macro relies on having the concrete type somewhere, somehow.