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.
fromThreadId :: ThreadId -> Word64base GHC.Conc.Sync Map a thread to an integer identifier which is unique within the current process.
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.
-
base GHC.Conc.Sync Returns the ThreadId of the calling thread (GHC only).
showThreadId :: ThreadId -> Stringbase GHC.Conc.Sync No documentation available.
DivideByZero :: ArithExceptionbase GHC.Exception No documentation available.
DivideByZero :: ArithExceptionbase GHC.Exception.Type No documentation available.
-
base GHC.ExecutionStack.Internal Free the cached debug data.
-
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.)
-
base GHC.Exts No documentation available.
-
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.