Skip to content

Commit

Permalink
Merge pull request #94 from tbidne/stm
Browse files Browse the repository at this point in the history
Add STM.flushTBQueue and STM.lengthTBQueue
  • Loading branch information
snoyberg authored Apr 26, 2022
2 parents 39ed892 + 81879fc commit de13c44
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
resolver: [nightly, lts-16, lts-14, lts-12, lts-11, lts-9]
resolver: [nightly, lts-19, lts-18, lts-17, lts-16, lts-14]

steps:
- name: Clone project
Expand Down
4 changes: 4 additions & 0 deletions unliftio-core/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for unliftio-core

## 0.2.0.2

* Widen `base` upperbound to `< 4.17` to support ghc-9.2.

## 0.2.0.1

* Remove faulty default implementation of `withRunInIO` [#56](https://github.com/fpco/unliftio/issues/56)
Expand Down
4 changes: 2 additions & 2 deletions unliftio-core/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: unliftio-core
version: 0.2.0.1
version: 0.2.0.2
synopsis: The MonadUnliftIO typeclass for unlifting monads to IO
description: Please see the documentation and README at <https://www.stackage.org/package/unliftio-core>
homepage: https://github.com/fpco/unliftio/tree/master/unliftio-core#readme
Expand All @@ -13,7 +13,7 @@ extra-source-files:
- ChangeLog.md

dependencies:
- base >= 4.9 && < 4.16
- base >= 4.9 && < 4.17
- transformers >= 0.2 && < 0.7

library:
Expand Down
5 changes: 5 additions & 0 deletions unliftio/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for unliftio

## 0.2.22.0

* Add `UnliftIO.STM.flushTBQueue`
* Add `UnliftIO.STM.lengthTBQueue`

## 0.2.21.0

* Add `UnliftIO.Directory.createDirectoryLink`
Expand Down
4 changes: 2 additions & 2 deletions unliftio/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: unliftio
version: 0.2.21.0
version: 0.2.22.0
synopsis: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
description: Please see the documentation and README at <https://www.stackage.org/package/unliftio>
homepage: https://github.com/fpco/unliftio/tree/master/unliftio#readme
Expand All @@ -20,7 +20,7 @@ dependencies:
- directory
- filepath
- process >= 1.2.0.0
- stm >= 2.4.3
- stm >= 2.5
- time
- transformers
- unliftio-core >= 0.1.1.0
Expand Down
2 changes: 2 additions & 0 deletions unliftio/src/UnliftIO/STM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ module UnliftIO.STM
, newTBQueueIO
, STM.readTBQueue
, STM.tryReadTBQueue
, STM.flushTBQueue
, STM.peekTBQueue
, STM.tryPeekTBQueue
, STM.writeTBQueue
, STM.unGetTBQueue
, STM.lengthTBQueue
, STM.isEmptyTBQueue
, STM.isFullTBQueue
) where
Expand Down

0 comments on commit de13c44

Please sign in to comment.