Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ihaskell IHaskellPrelude Atomically read the contents of an MVar. If the MVar is currently empty, readMVar will wait until it is full. readMVar is guaranteed to receive the next putMVar. readMVar is multiple-wakeup, so when multiple readers are blocked on an MVar, all of them are woken up at the same time. The runtime guarantees that all woken threads complete their readMVar operation. Compatibility note: Prior to base 4.7, readMVar was a combination of takeMVar and putMVar. This mean that in the presence of other threads attempting to putMVar, readMVar could block. Furthermore, readMVar would not receive the next putMVar if there was already a pending thread blocked on takeMVar. The old behavior can be recovered by implementing 'readMVar as follows:
readMVar :: MVar a -> IO a readMVar m = mask_ $ do a <- takeMVar m putMVar m a return a
readMay :: Read a => String -> Maybe aihaskell IHaskellPrelude No documentation available.
readStablePtrArray# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, StablePtr# a #)ihaskell IHaskellPrelude Read a StablePtr# value; offset in machine words. Warning: this can fail with an unchecked exception.
readStablePtrOffAddr# :: Addr# -> Int# -> State# d -> (# State# d, StablePtr# a #)ihaskell IHaskellPrelude Read a StablePtr# value; offset in machine words. On some platforms, the access may fail for an insufficiently aligned Addr#. Warning: this can fail with an unchecked exception.
readWideCharArray# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Char# #)ihaskell IHaskellPrelude Read a 32-bit character; offset in 4-byte words. Warning: this can fail with an unchecked exception.
readWideCharOffAddr# :: Addr# -> Int# -> State# d -> (# State# d, Char# #)ihaskell IHaskellPrelude Read a 32-bit character; offset in 4-byte words. On some platforms, the access may fail for an insufficiently aligned Addr#. Warning: this can fail with an unchecked exception.
readWord16Array# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Word16# #)ihaskell IHaskellPrelude Read a 16-bit unsigned integer; offset in 2-byte words. Warning: this can fail with an unchecked exception.
readWord16ArrayAsWord16X16# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Word16X16# #)ihaskell IHaskellPrelude Read a vector from specified index of mutable array of scalars; offset is in scalar elements. Warning: this is only available on LLVM and can fail with an unchecked exception.
readWord16ArrayAsWord16X32# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Word16X32# #)ihaskell IHaskellPrelude Read a vector from specified index of mutable array of scalars; offset is in scalar elements. Warning: this is only available on LLVM and can fail with an unchecked exception.
readWord16ArrayAsWord16X8# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Word16X8# #)ihaskell IHaskellPrelude Read a vector from specified index of mutable array of scalars; offset is in scalar elements. Warning: this is only available on LLVM and can fail with an unchecked exception.