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.
readTVar :: MonadSTM stm => TVar stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TVar Return the current value stored in a TVar.
readTVarConc :: MonadConc m => TVar (STM m) a -> m aconcurrency Control.Concurrent.Classy.STM.TVar Read the current value stored in a TVar. This may be implemented differently for speed.
readTVarConc = atomically . readTVar
readForCAS :: MonadConc m => IORef m a -> m (Ticket m a)concurrency Control.Monad.Conc.Class Read the current value stored in a reference, returning a Ticket, for use in future compare-and-swap operations.
readIORef :: MonadConc m => IORef m a -> m aconcurrency Control.Monad.Conc.Class Read the current value stored in a reference.
readIORef ioref = readForCAS ioref >>= peekTicket
readMVar :: MonadConc m => MVar m a -> m aconcurrency Control.Monad.Conc.Class Block until a value is present in the MVar, and then return it. This does not "remove" the value, multiple reads are possible.
readTVarConc :: MonadConc m => TVar (STM m) a -> m aconcurrency Control.Monad.Conc.Class Read the current value stored in a TVar. This may be implemented differently for speed.
readTVarConc = atomically . readTVar
readTVar :: MonadSTM stm => TVar stm a -> stm aconcurrency Control.Monad.STM.Class Return the current value stored in a TVar.
readable :: (Read a, Typeable a) => Text -> Either String aconfig-ini Data.Ini.Config Try to use the Read instance for a type to parse a value, failing with a human-readable error message if reading fails.
>>> readable "(5, 7)" :: Either String (Int, Int) Right (5,7) >>> readable "hello" :: Either String (Int, Int) Left "Unable to parse \"hello\" as a value of type (Int,Int)"
readable :: (Show a, Read a, Typeable a) => FieldValue aconfig-ini Data.Ini.Config.Bidir A FieldValue for parsing and serializing values according to the logic of the Read and Show instances for that type, providing a convenient human-readable error message if the parsing step fails.
readURef :: (PrimMonad m, Unbox a) => URef (PrimState m) a -> m adata-sketches-core DataSketches.Core.Internal.URef Read the value in a URef