Skip to content

Commit fdd9100

Browse files
committed
feat: reexport the compatibility API
For easier usage of the Internal module in a backward compatible way in other libraries.
1 parent b15a982 commit fdd9100

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Control/Concurrent/Async/Internal.hs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,21 @@
2626
--
2727
-----------------------------------------------------------------------------
2828

29-
module Control.Concurrent.Async.Internal where
29+
module Control.Concurrent.Async.Internal (
30+
module Control.Concurrent.Async.Internal,
31+
32+
#if MIN_VERSION_base(4,21,0)
33+
-- * Compatibility wrapper for base < 4.20
34+
-- These items are defined for base < 4.20 in this module and in
35+
-- Control.Exception[.Context] for base >= 4.20. In order to ease usage of
36+
-- the internal API, we reexport them here.
37+
ExceptionWithContext(..),
38+
rethrowIO,
39+
catchNoPropagate,
40+
tryWithContext
41+
#endif
42+
43+
)where
3044

3145
import Control.Concurrent.STM
3246
import Control.Exception

0 commit comments

Comments
 (0)