-
Notifications
You must be signed in to change notification settings - Fork 9
Tweak API #458
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
Tweak API #458
Conversation
c46ce30 to
508fee6
Compare
jorisdral
left a comment
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.
LGTM!
| -> SnapshotName | ||
| -> (h m k v -> m a) | ||
| -> m a | ||
| withTableOpen sesh snap = bracket (open sesh snap) close |
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.
We could also rename this bit to withTableOpenSnapshot or some similar name
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.
I called it withTableFromSnapshot
The "main" argument (keys, values, ...) comes last, allowing to pass a large expression there (e.g. long explicit list).
508fee6 to
6dc6d8d
Compare
6dc6d8d to
7903d6c
Compare
Just to make it a bit clearer and more convenient to use.