Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. SizeUnreadable :: Size

    pango Graphics.Rendering.Pango.Enums

    No documentation available.

  2. parseByRead :: Read a => String -> TextParser a

    polyparse Text.Parse

    If there already exists a Read instance for a type, then we can make a Parser for it, but with only poor error-reporting. The string argument is the expected type or value (for error-reporting only).

  3. parseByRead :: Read a => String -> TextParser a

    polyparse Text.Parse.ByteString

    If there already exists a Read instance for a type, then we can make a Parser for it, but with only poor error-reporting. The string argument is the expected type or value (for error-reporting only). Use of this wrapper function is NOT recommended with ByteString, because there is a lot of inefficiency in repeated conversions to/from String.

  4. eitherReader :: (String -> Either String a) -> ReadM a

    simple-cmd-args SimpleCmdArgs

    Convert a function producing an Either into a reader. As an example, one can create a ReadM from an attoparsec Parser easily with

    import qualified Data.Attoparsec.Text as A
    import qualified Data.Text as T
    attoparsecReader :: A.Parser a -> ReadM a
    attoparsecReader p = eitherReader (A.parseOnly p . T.pack)
    

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

    simple-cmd-args SimpleCmdArgs

    Convert a function producing a Maybe into a reader.

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

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

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

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

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

Page 576 of many | Previous | Next