-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize name of Parallel typeclass #15
Comments
It's true it is more widely applicable, but As an example, see here: purescript/purescript-transformers#77 (comment) (The issue is now fixed, but if you use Soo, I'm not sure what to suggest. There almost certainly is a more accurate description for what this class represents, but only if you ignore the operational semantics. |
Yes but going from If we have some word which captures behavior of Applicatives for example "static". class (Monad m, Applicative f) <= _______ f m | m -> f, f -> m where
static :: m ~> f
dynamic :: f ~> m Or maybe if we look at monad and applicative as strong and weak then: class (Monad m, Applicative f) <= Strength f m | m -> f, f -> m where
weaken :: m ~> f
strengthen :: f ~> m this wording is not best but gives idea of what i'm thinking on. |
I think "parallel" and "sequential" make sense; as you say, "sequential" is kind of intrinsic to monads, and "parallel" is the natural opposite of "sequential". In any case, neither |
After reading this reddit thread i'm thinking that name
Parallel
orConcurent
is not that precise as this typeclass is just pearing/isomorphism between some Monad and some Applicative.This are example are not strictly related to concurrency/parallelism:
For now I don't have a better name but will think on this.
Related fantasy-land#186
The text was updated successfully, but these errors were encountered: