Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

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

  1. maybeReader :: (String -> Maybe a) -> ReadM a

    simple-cmd-args SimpleCmdArgs

    Convert a function producing a Maybe into a reader.

  2. package threads

    Fork threads and wait for their result This package provides functions to fork threads and wait for their result, whether it's an exception or a normal value. Besides waiting for the termination of a single thread this packages also provides functions to wait for a group of threads to terminate. This package is similar to the threadmanager, async and spawn packages. The advantages of this package are:

    • Simpler API.
    • More efficient in both space and time.
    • No space-leak when forking a large number of threads.
    • Correct handling of asynchronous exceptions.
    • GHC specific functionality like forkOn and forkIOWithUnmask.

  3. module Control.Concurrent.Thread

    Standard threads extended with the ability to wait for their return value. This module exports equivalently named functions from Control.Concurrent (and GHC.Conc). Avoid ambiguities by importing this module qualified. May we suggest:

    import qualified Control.Concurrent.Thread as Thread ( ... )
    
    The following is an example how to use this module:
    import qualified Control.Concurrent.Thread as Thread ( forkIO, result )
    
    main = do (tid, wait) <- Thread.forkIO $ do x <- someExpensiveComputation
    return x
    doSomethingElse
    x <- Thread.result =<< wait
    doSomethingWithResult x
    

  4. data ThreadGroup

    threads Control.Concurrent.Thread.Group

    A ThreadGroup can be understood as a counter which counts the number of threads that were added to the group minus the ones that have terminated. More formally a ThreadGroup has the following semantics:

    • new initializes the counter to 0.
    • Forking a thread increments the counter.
    • When a forked thread terminates, whether normally or by raising an exception, the counter is decremented.
    • nrOfRunning yields a transaction that returns the counter.
    • wait blocks as long as the counter is greater than 0.
    • waitN blocks as long as the counter is greater or equal to the specified number.

  5. steppableReadPrec :: forall t (f :: Type -> Type) . (Steppable (->) t f, Read1 f) => ReadPrec t

    yaya Yaya.Fold

    An implementation of readPrec for any Steppable instance. NB: Use steppableReadPrec' if you need to use a custom parsing function for f. NB: This only requires Steppable, but the inverse operation is recursiveShowsPrec, which requires Recursive instead.

  6. steppableReadPrec' :: Steppable (->) t f => (ReadPrec t -> ReadPrec [t] -> ReadPrec (f t)) -> ReadPrec t

    yaya Yaya.Fold

    Like steppableReadPrec, but allows you to provide a custom display function for f.

  7. steppableReadPrec :: forall t (f :: Type -> Type) . (Steppable (->) t f, Read1 f) => ReadPrec t

    yaya Yaya.Retrofit

    An implementation of readPrec for any Steppable instance. NB: Use steppableReadPrec' if you need to use a custom parsing function for f. NB: This only requires Steppable, but the inverse operation is recursiveShowsPrec, which requires Recursive instead.

  8. steppableReadPrec' :: Steppable (->) t f => (ReadPrec t -> ReadPrec [t] -> ReadPrec (f t)) -> ReadPrec t

    yaya Yaya.Retrofit

    Like steppableReadPrec, but allows you to provide a custom display function for f.

  9. pattern GL_MAP_READ_BIT :: GLbitfield

    OpenGLRaw Graphics.GL.ARB.BufferStorage

    No documentation available.

  10. pattern GL_CLAMP_READ_COLOR_ARB :: GLenum

    OpenGLRaw Graphics.GL.ARB.ColorBufferFloat

    No documentation available.

Page 576 of many | Previous | Next