-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make Zipper opaque. Add fromCons and from constructors #26
Conversation
Looking forward to discussion, @wernerdegroot . I think making |
Hi @AdrianoFerrari , thanks for contributing. Although I haven't responded really quickly, I really appreciate you taking the time 👍 I would like to propose to add a few unit tests for the new functions. Also, the fact that the |
Thanks for the feedback! |
Fixed the existing tests, still need to add unit tests for new functions. I'm worried about introducing the Anyone that was using the Zipper constructor directly would have been adding a Thoughts? |
Added new unit tests, and doc clarification for |
Zipper [] x xs | ||
|
||
|
||
{-| Construct a `Zipper` from before, current, after. The order is preserved, so `(from [1,2,3] 4 [5,6] |> toList) == [1,2,3,4,5,6]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The comment should help a lot!
Thanks for your contribution. I'll release this directly! |
Published as 4.0.0! Well done! |
Yay 🎉! |
Basic attempt to make Zipper private (#10). Added two new constructors as well, since it would probably be useful to have these.