Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- weakThreadId :: ThreadId -> Int
- eqThreadId :: ThreadId -> ThreadId -> Bool
- data IORef' a
- newIORef' :: a -> IO (IORef' a)
- readIORef' :: IORef' a -> IO a
- writeIORef' :: IORef' a -> a -> IO ()
- data MVar' a
- toMVar' :: MVar a -> IO (MVar' a)
- newMVar' :: a -> IO (MVar' a)
- readMVar' :: MVar' a -> IO a
- modifyMVar' :: MVar' a -> (a -> IO (a, r)) -> IO r
- modifyMVar_' :: MVar' a -> (a -> IO a) -> IO ()
- type family Any :: k where ...
- toAny :: a -> Any
- fromAny :: Any -> a
Documentation
weakThreadId :: ThreadId -> Int Source #
Get an id of a thread that doesn't prevent its garbage collection.
eqThreadId :: ThreadId -> ThreadId -> Bool Source #
Eq
instance for ThreadId
is broken in GHC < 9, see
https://gitlab.haskell.org/ghc/ghc/-/issues/16761 for more info.
Strict IORef
readIORef' :: IORef' a -> IO a Source #
writeIORef' :: IORef' a -> a -> IO () Source #