Update Lens Documentation #57

Open
mightybyte opened this Issue Nov 12, 2012 · 3 comments

2 participants

@mightybyte
Snap Framework member

The lens documentation in src/Snap/Snaplet.hs needs to be updated for the new lens library. This needs to be done before the 0.10 release.

@sopvop

Also please think about limiting amount of Control.Lens exported from Snap.
edwardk suggested exporting only Control.Lens.Loupe, but I think some common things like set, over, view should also be exported. Exporting whole thing pollutes namespace.

P.S. I don't understand lens enough to write docs.

@mightybyte
Snap Framework member

Ok, I changed to only export Control.Lens.Loupe. Docs still need to be updated.

@sopvop

I've tried to update docs, but failed to explain lens simply, because Lens type is not simple, and SnapletLens don't really get generated by makeLenses. sopvop/snap@72a8e4e Ideas, anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment