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

Add laws. #84

Open
sellout opened this issue Apr 24, 2017 · 3 comments
Open

Add laws. #84

sellout opened this issue Apr 24, 2017 · 3 comments

Comments

@sellout
Copy link
Contributor

sellout commented Apr 24, 2017

E.g.

  • Birecursive#iso should pass the monocle.Iso laws.
  • x.ana(f).cata(g) ≟ x.hylo(g, f) (for some generic f and g)
  • x.cata(g) ≟ x.hylo(g, _.project) and its dual
  • either make other operations (gcata, futu, etc.) final or add laws comparing them to the default impls
@yilinwei
Copy link
Contributor

@sellout Do you mind if I take a stab at this? I'd like to do this issue at the same time as this one here

@sellout
Copy link
Contributor Author

sellout commented May 16, 2017

Yeah, that would be awesome.

Feel free to poke me if you run into anything confusing on the Matryoshka side of things. I’m more than happy to help out.

@yilinwei
Copy link
Contributor

yilinwei commented Jun 9, 2017

Just a comment to show I haven't forgotten about this; hopefully will have something out fairly soon.

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