Skip to content
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

Inspired by #10 #22

Open
erlandsona opened this issue Jun 2, 2020 · 2 comments
Open

Inspired by #10 #22

erlandsona opened this issue Jun 2, 2020 · 2 comments

Comments

@erlandsona
Copy link

What about generating Prisms, Traversals, or other optics? I'm also curious about how these compose... I've got some heavy enough usage of nested |> Option.map(x => x.prop) and |> Option.flatMap(x => x.prop) stuff, and I'm wondering if making use of this library might give me some better ergonomics.

@fakenickels
Copy link
Contributor

That is a nice idea, let's discuss how that would look like in here.
What kind of usage are you thinking on?

@erlandsona
Copy link
Author

Honestly, I don't have much experience with them given we've only just started using Reason at my company the past few months and I only have experience doing Haskell in my free time so I never used the lense lib but I know of it, why it exists, and this would be my first experience getting to put lenses in production so mostly I was looking for some larger scale examples.

Based on my limited understanding of Optics Prism's would give us the ability to handle custom variants as options and Traversals for say rendering an list of say html `li's?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants