Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readTMVar :: MonadSTM stm => TMVar stm a -> stm a

    concurrency Control.Concurrent.Classy.STM.TMVar

    Read from a TMVar without emptying, or retry if it is empty.

  2. readTQueue :: MonadSTM stm => TQueue stm a -> stm a

    concurrency Control.Concurrent.Classy.STM.TQueue

    Read the next value from the TQueue.

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

    concurrency Control.Concurrent.Classy.STM.TVar

    Return the current value stored in a TVar.

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

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

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

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

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

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

    concurrency Control.Monad.STM.Class

    Return the current value stored in a TVar.

  10. 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)"
    

Page 249 of many | Previous | Next