Hoogle Search

Within LTS Haskell 24.62 (ghc-9.10.3)

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

  1. fromThreadId :: ThreadId -> Word64

    base GHC.Conc.Sync

    Map a thread to an integer identifier which is unique within the current process.

  2. mkWeakThreadId :: ThreadId -> IO (Weak ThreadId)

    base GHC.Conc.Sync

    Make a weak pointer to a ThreadId. It can be important to do this if you want to hold a reference to a ThreadId while still allowing the thread to receive the BlockedIndefinitely family of exceptions (e.g. BlockedIndefinitelyOnMVar). Holding a normal ThreadId reference will prevent the delivery of BlockedIndefinitely exceptions because the reference could be used as the target of throwTo at any time, which would unblock the thread. Holding a Weak ThreadId, on the other hand, will not prevent the thread from receiving BlockedIndefinitely exceptions. It is still possible to throw an exception to a Weak ThreadId, but the caller must use deRefWeak first to determine whether the thread still exists.

  3. myThreadId :: IO ThreadId

    base GHC.Conc.Sync

    Returns the ThreadId of the calling thread (GHC only).

  4. showThreadId :: ThreadId -> String

    base GHC.Conc.Sync

    No documentation available.

  5. DivideByZero :: ArithException

    base GHC.Exception

    No documentation available.

  6. DivideByZero :: ArithException

    base GHC.Exception.Type

    No documentation available.

  7. invalidateDebugCache :: IO ()

    base GHC.ExecutionStack.Internal

    Free the cached debug data.

  8. data ThreadId#

    base GHC.Exts

    (In a non-concurrent implementation, this can be a singleton type, whose (unique) value is returned by myThreadId#. The other operations can be omitted.)

  9. type Void# = (# #)

    base GHC.Exts

    No documentation available.

  10. considerAccessible :: Bool

    base GHC.Exts

    Semantically, considerAccessible = True. But it has special meaning to the pattern-match checker, which will never flag the clause in which considerAccessible occurs as a guard as redundant or inaccessible. Example:

    case (x, x) of
    (True,  True)  -> 1
    (False, False) -> 2
    (True,  False) -> 3 -- Warning: redundant
    
    The pattern-match checker will warn here that the third clause is redundant. It will stop doing so if the clause is adorned with considerAccessible:
    case (x, x) of
    (True,  True)  -> 1
    (False, False) -> 2
    (True,  False) | considerAccessible -> 3 -- No warning
    
    Put considerAccessible as the last statement of the guard to avoid get confusing results from the pattern-match checker, which takes "consider accessible" by word.

Page 364 of many | Previous | Next