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 Cached newtype #15

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Add Cached newtype #15

merged 3 commits into from
Oct 18, 2023

Conversation

Tristano8
Copy link

@Tristano8 Tristano8 commented Sep 19, 2023

Implements the proposal in #14

Closes #11

Copy link
Member

@JackKelly-Bellroy JackKelly-Bellroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test suite needs fixing, but I'll just comment on the interface changes.

src/Control/Concurrent/CachedIO.hs Outdated Show resolved Hide resolved
src/Control/Concurrent/CachedIO.hs Show resolved Hide resolved
src/Control/Concurrent/CachedIO.hs Outdated Show resolved Hide resolved
src/Control/Concurrent/CachedIO.hs Outdated Show resolved Hide resolved
Copy link
Member

@JackKelly-Bellroy JackKelly-Bellroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple more nits; also I'd like @lrworth to have a chance to give his OPINONION.

src/Control/Concurrent/CachedIO.hs Outdated Show resolved Hide resolved
test/test-cachedIO.hs Outdated Show resolved Hide resolved
Co-authored-by: JackKelly-Bellroy <[email protected]>
Copy link
Member

@JackKelly-Bellroy JackKelly-Bellroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with this now, but I'd really like @lrworth to weigh in, since it's a lib that he adopted.

Copy link

@lrworth lrworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives a better API regardless of the reason, thanks @Tristano8 and @JackKelly-Bellroy.

src/Control/Concurrent/CachedIO.hs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@Tristano8 Tristano8 merged commit 1acf4e7 into master Oct 18, 2023
12 checks passed
@JackKelly-Bellroy JackKelly-Bellroy deleted the cached-newtype branch March 12, 2024 00:12
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.

Incorrect documentation on Hackage
3 participants