Skip to content

Conversation

@mheinzel
Copy link
Collaborator

@mheinzel mheinzel commented Nov 8, 2024

Just to make it a bit clearer and more convenient to use.

Copy link
Collaborator

@jorisdral jorisdral left a 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
Copy link
Collaborator

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

Copy link
Collaborator Author

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).
@mheinzel mheinzel enabled auto-merge November 11, 2024 13:55
@mheinzel mheinzel added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit 48e22c4 Nov 11, 2024
24 checks passed
@mheinzel mheinzel deleted the mheinzel/tweak-api branch November 11, 2024 14:36
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

Successfully merging this pull request may close these issues.

3 participants