Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. readChan :: UnagiPrim a => IO () -> OutChan a -> IO a

    unagi-chan Control.Concurrent.Chan.Unagi.NoBlocking.Unboxed

    readChan io c returns the next element from c, calling tryReadChan and looping on the Element returned, and calling io at each iteration when the element is not yet available. It throws BlockedIndefinitelyOnMVar when isActive determines that a value will never be returned. When used like readChan yield or readChan (threadDelay 10) this is the semantic equivalent to the blocking readChan in the other implementations.

  2. readChan :: UnagiPrim a => OutChan a -> IO a

    unagi-chan Control.Concurrent.Chan.Unagi.Unboxed

    Read an element from the chan, blocking if the chan is empty. Note re. exceptions: When an async exception is raised during a readChan the message that the read would have returned is likely to be lost, even when the read is known to be blocked on an empty queue. If you need to handle this scenario, you can use readChanOnException.

  3. readChanOnException :: UnagiPrim a => OutChan a -> (IO a -> IO ()) -> IO a

    unagi-chan Control.Concurrent.Chan.Unagi.Unboxed

    Like readChan but allows recovery of the queue element which would have been read, in the case that an async exception is raised during the read. To be precise exceptions are raised, and the handler run, only when readChanOnException is blocking. The second argument is a handler that takes a blocking IO action returning the element, and performs some recovery action. When the handler is called, the passed IO a is the only way to access the element.

  4. readSTArray :: forall i (m :: Type -> Type) s e . (Ix i, Applicative m) => STArray s i e -> i -> STT s m e

    STMonadTrans Control.Monad.ST.Trans

    Retrieves an element from the array

  5. readSTRef :: forall (m :: Type -> Type) s a . Applicative m => STRef s a -> STT s m a

    STMonadTrans Control.Monad.ST.Trans

    Reads the value of a reference

  6. readComponentCount :: forall c m . MonadIO m => ComponentCounter c -> m (ComponentCount c)

    apecs Apecs.Experimental.Reactive

    No documentation available.

  7. reader :: forall w (m :: Type -> Type) r a s . (Monoid w, Monad m) => (r -> a) -> RWST r w s m a

    automaton Data.Automaton.Trans.RWS

    Constructor for computations in the reader monad (equivalent to asks).

  8. readerS :: forall (m :: Type -> Type) r a b . Monad m => Automaton m (r, a) b -> Automaton (ReaderT r m) a b

    automaton Data.Automaton.Trans.Reader

    Convert an explicit Automaton input into an environment in the ReaderT monad transformer. This is the opposite of runReaderS.

  9. readSchemaFromSchema :: Schema -> ReadSchema

    avro Data.Avro

    Converts Schema into ReadSchema. This function may be useful when it is known that the writer and the reader schemas are the same.

  10. readEither :: Read a => String -> Either String a

    base-prelude BasePrelude

    Parse a string using the Read instance. Succeeds if there is exactly one valid result. A Left value indicates a parse error.

    >>> readEither "123" :: Either String Int
    Right 123
    
    >>> readEither "hello" :: Either String Int
    Left "Prelude.read: no parse"
    

Page 232 of many | Previous | Next