-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement Zippers #1156
Comments
I've found the occasional use of zippers in the past. If we include this I would vote to have it in a separate project or a |
@adelbertc did you consider using shapeless zipper? |
@kailuowang Isn't shapeless zipper works only with HList like structures? |
@PanAeon shapeless's zipper works on arbitrary nested product types. |
@PanAeon sorry, it slipped my mind to reply to you. Thank you @milessabin ! |
thanks, both of you! That's why I'm asking - zipper from ScalaZ works with Streams, which I believe are kind of union types. So it is still makes sense to implement generic zipper / list zipper for cats. (maybe in a separate lib) |
again I vote for a separate lib. |
Also voting for a separate library. |
+1 for this existing in a separate library if the shapeless version isn't sufficient. Another +1 for basing it on a clean implementation instead of starting with the Scalaz version. |
I have noticed that, while ScalaZ provides an implementation for Zippers, cats doesn't seem to have one yet. Would that be a useful addition to this project?, and if so, should we use the ScalaZ implementation as a reference?
According to the Haskell wiki, the concept was first formulated in a paper by Gerard Huet.
The text was updated successfully, but these errors were encountered: