Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

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

  1. DivideByZero :: ArithException

    protolude Protolude

    No documentation available.

  2. data ThreadId

    protolude Protolude

    A ThreadId is an abstract type representing a handle to a thread. ThreadId is an instance of Eq, Ord and Show, where the Ord instance implements an arbitrary total ordering over ThreadIds. The Show instance lets you convert an arbitrary-valued ThreadId to string form; showing a ThreadId value is occasionally useful when debugging or diagnosing the behaviour of a concurrent program. Note: in GHC, if you have a ThreadId, you essentially have a pointer to the thread itself. This means the thread itself can't be garbage collected until you drop the ThreadId. This misfeature would be difficult to correct while continuing to support threadStatus.

  3. data WrappedMonoid m

    protolude Protolude

    Provide a Semigroup for an arbitrary Monoid. NOTE: This is not needed anymore since Semigroup became a superclass of Monoid in base-4.11 and this newtype be deprecated at some point in the future.

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

    protolude Protolude

    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.

  5. myThreadId :: IO ThreadId

    protolude Protolude

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

  6. selDecidedStrictness :: forall k1 t (f :: k1 -> Type) (a :: k1) . Selector s => t s f a -> DecidedStrictness

    protolude Protolude

    The strictness that the compiler inferred for the selector

  7. stimesIdempotent :: Integral b => b -> a -> a

    protolude Protolude

    This is a valid definition of stimes for an idempotent Semigroup. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>.

  8. stimesIdempotentMonoid :: (Integral b, Monoid a) => b -> a -> a

    protolude Protolude

    This is a valid definition of stimes for an idempotent Monoid. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>

  9. stimesMonoid :: (Integral b, Monoid a) => b -> a -> a

    protolude Protolude

    This is a valid definition of stimes for a Monoid. Unlike the default definition of stimes, it is defined for 0 and so it should be preferred where possible.

  10. traceId :: Text -> Text

    protolude Protolude.Debug

    Warning: traceId remains in code

Page 627 of many | Previous | Next