-
Notifications
You must be signed in to change notification settings - Fork 48
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
Offer a flipped version #116
Comments
I spent a fair amount of time with a flipped version, and it does offer some niceties. What happened to my efforts then is that I found I was really recapitulating |
createT :: Traversable t => (forall s. ST s (t (MVector s a))) -> t (Vector a) which only lets you make vectors of one type in a createIT :: Rank2.Traversable t => (forall s. ST s (t (MVector s))) -> t Vector This could be used with a flipped I haven't looked at |
To clarify, |
I've been playing around with
Rec
-like things for a while, and I've noticed that there are quite a few typeclass-worthy generalizations ... of flippedRec
. For example,rmap
is really justimap
for a McBride-style indexed functor. Andrtraverse
suggests the following class:which happens to provide reasonably nice language for building arrays. I'm wondering if it might make sense to offer a module for a version of
Rec
with its type arguments flipped.The text was updated successfully, but these errors were encountered: