Skip to content

add some 'IO' variants#94

Merged
MangoIV merged 2 commits into
haskell:masterfrom
jkachmar:extra-io-variants
Apr 24, 2026
Merged

add some 'IO' variants#94
MangoIV merged 2 commits into
haskell:masterfrom
jkachmar:extra-io-variants

Conversation

@jkachmar

Copy link
Copy Markdown
Contributor

description

  • 'tryReadTMVarIO': a faster 'tryReadTMVar' (doesn't need to retry)
  • 'isEmptyTMVarIO': a faster 'isEmptyTMVar' (doesn't need to retry)
  • 'newTSemIO': 'newTSem' that can be run in 'unsafePerformIO'

notes

closes #89

@MangoIV

MangoIV commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

I think this is a nice improvement. Can you add @since annotations for the next minor version as well as a changelog entry? When you do, I'll proceed to merge this.
Thank you for the contribution.

@jkachmar
jkachmar force-pushed the extra-io-variants branch from b9a38f2 to 463175e Compare April 24, 2026 02:37
* 'tryReadTMVarIO': a faster 'tryReadTMVar' (doesn't need to retry)
* 'isEmptyTMVarIO': a faster 'isEmptyTMVar' (doesn't need to retry)
* 'newTSemIO': 'newTSem' that can be run in 'unsafePerformIO'
@jkachmar
jkachmar force-pushed the extra-io-variants branch from 463175e to 8b5d20c Compare April 24, 2026 02:39
@jkachmar

Copy link
Copy Markdown
Contributor Author

sorry for the delay; let me know if I misunderstood what you meant by "next minor version" here

@MangoIV

MangoIV commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Thank you!

@MangoIV
MangoIV force-pushed the extra-io-variants branch from d48c774 to eefc6b1 Compare April 24, 2026 10:52
@MangoIV
MangoIV merged commit c911504 into haskell:master Apr 24, 2026
15 checks passed
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.

Faster tryReadTMVarIO

2 participants