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.

  1. readTVar :: MonadSTM stm => TVar stm a -> stm a

    concurrency Control.Concurrent.Classy.STM.TVar

    Return the current value stored in a TVar.

  2. readTVarConc :: MonadConc m => TVar (STM m) a -> m a

    concurrency Control.Concurrent.Classy.STM.TVar

    Read the current value stored in a TVar. This may be implemented differently for speed.

    readTVarConc = atomically . readTVar
    

  3. 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.

  4. readIORef :: MonadConc m => IORef m a -> m a

    concurrency Control.Monad.Conc.Class

    Read the current value stored in a reference.

    readIORef ioref = readForCAS ioref >>= peekTicket
    

  5. readMVar :: MonadConc m => MVar m a -> m a

    concurrency 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.

  6. readTVarConc :: MonadConc m => TVar (STM m) a -> m a

    concurrency Control.Monad.Conc.Class

    Read the current value stored in a TVar. This may be implemented differently for speed.

    readTVarConc = atomically . readTVar
    

  7. readTVar :: MonadSTM stm => TVar stm a -> stm a

    concurrency Control.Monad.STM.Class

    Return the current value stored in a TVar.

  8. readable :: (Read a, Typeable a) => Text -> Either String a

    config-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)"
    

  9. readable :: (Show a, Read a, Typeable a) => FieldValue a

    config-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.

  10. readURef :: (PrimMonad m, Unbox a) => URef (PrimState m) a -> m a

    data-sketches-core DataSketches.Core.Internal.URef

    Read the value in a URef

Page 248 of many | Previous | Next