Skip to content

Commit

Permalink
quasar: Export TDisposer
Browse files Browse the repository at this point in the history
  • Loading branch information
queezle42 committed Nov 17, 2023
1 parent 6621c3a commit 6bbc5f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions quasar/src/Quasar/Resources.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,23 @@ module Quasar.Resources (
-- * Types to implement resources
-- ** Disposer
Disposer,
TDisposer,
TSimpleDisposer,
disposeSTM,
disposeTSimpleDisposer,
newUnmanagedIODisposer,
newUnmanagedSTMDisposer,
newUnmanagedTSimpleDisposer,
trivialDisposer,
isTrivialDisposer,

-- *** STM variants
TDisposable(..),
TDisposer,
disposeSTM,
newUnmanagedSTMDisposer,
newUnmanagedNoRetryTDisposer,
newUnmanagedRetryTDisposer,
isTrivialTDisposer,

-- *** Legacy NoRetry disposer
TSimpleDisposer,
newUnmanagedTSimpleDisposer,
isTrivialTSimpleDisposer,

-- ** Resource manager
Expand All @@ -57,6 +65,8 @@ module Quasar.Resources (
-- * Implementing disposers
IsDisposerElement(..),
toDisposer,
IsTDisposerElement(..),
toTDisposer,
) where


Expand Down
2 changes: 1 addition & 1 deletion quasar/src/Quasar/Resources/Disposer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Quasar.Resources.Disposer (
newUnmanagedRetryTDisposer,
isTrivialTDisposer,

-- ** Legacy/internal STM variants
-- ** Legacy NoRetry disposer
TSimpleDisposer,
newUnmanagedTSimpleDisposer,
disposeTSimpleDisposer,
Expand Down

0 comments on commit 6bbc5f2

Please sign in to comment.