# stm-chans

> Bounded and closeable STM channels for Haskell

Source: https://talira.ai/catalog/stm-chans-rwt6ynfx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / concurrency](https://talira.ai/categories/libraries/concurrency), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [wren gayle romano](https://talira.ai/orgs/wrengr.md)

stm-chans adds channel types to [stm](https://talira.ai/catalog/stm-e7csm5vy.md)'s TChan and TQueue for Haskell: bounded FIFO channels (TBChan) whose writers block when full so they can't get too far ahead of readers, closeable FIFO channels and queues (TMChan, TMQueue), and bounded closeable versions of both. It's by wren gayle romano and Thomas DuBuisson.

## Links

- GitHub: https://github.com/wrengr/stm-chans

## Problems it solves

- a bounded channel with backpressure in Haskell STM
- close an STM channel to signal end of input in Haskell
- limit memory use between producer and consumer threads in Haskell

## Features

- bounded FIFO channels (TBChan)
- closeable channels and queues (TMChan, TMQueue)
- bounded closeable channels and queues

## Trust

Overall: 0.28 out of 1.
Signals: maintenance 0.46, adoption 0.22, momentum 0.01, community 0.31, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 1 commits in the last 90 days
- latest release v3.0.0.9 3.7 years ago
- 11 GitHub stars
- 5 contributors
- backed by wren gayle romano

## Related

- Works with [stm](https://talira.ai/catalog/stm-e7csm5vy.md)

## Sources

[^1]: https://github.com/wrengr/stm-chans/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/wrengr/stm-chans/blob/master/stm-chans.cabal (checked 29 Nov 2026)
