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.
maybeReader :: (String -> Maybe a) -> ReadM asimple-cmd-args SimpleCmdArgs Convert a function producing a Maybe into a reader.
-
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.
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
-
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.
steppableReadPrec :: forall t (f :: Type -> Type) . (Steppable (->) t f, Read1 f) => ReadPrec tyaya 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.
-
yaya Yaya.Fold Like steppableReadPrec, but allows you to provide a custom display function for f.
steppableReadPrec :: forall t (f :: Type -> Type) . (Steppable (->) t f, Read1 f) => ReadPrec tyaya 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.
-
yaya Yaya.Retrofit Like steppableReadPrec, but allows you to provide a custom display function for f.
pattern
GL_MAP_READ_BIT :: GLbitfieldOpenGLRaw Graphics.GL.ARB.BufferStorage No documentation available.
pattern
GL_CLAMP_READ_COLOR_ARB :: GLenumOpenGLRaw Graphics.GL.ARB.ColorBufferFloat No documentation available.