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

Document how to write a 'Size' instance #100

Open
sjakobi opened this issue Feb 20, 2017 · 2 comments
Open

Document how to write a 'Size' instance #100

sjakobi opened this issue Feb 20, 2017 · 2 comments

Comments

@sjakobi
Copy link
Contributor

sjakobi commented Feb 20, 2017

Also, could this be simplified? Could Size have a Num instance? A MonoFunctor instance should definitely be possible.

@sjakobi
Copy link
Contributor Author

sjakobi commented Feb 20, 2017

Ok, turns out writing a Size instance is not all that hard once one has found the Size combinators in Data.Store.Internal.

I think these should be more prominent and possibly moved into a non-internal module, maybe something like Data.Store.Size.

@mgsloan
Copy link
Owner

mgsloan commented Feb 21, 2017

A separate non-internal module makes sense to me!

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