Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. constM :: Functor m => m b -> Automaton m a b

    automaton Data.Automaton

    Produce output effectfully, without keeping internal state

  2. hoistMaybe :: forall (m :: Type -> Type) b . Applicative m => Maybe b -> MaybeT m b

    automaton Data.Automaton.Trans.Maybe

    Convert a Maybe computation to MaybeT.

  3. constM :: Functor m => m a -> StreamT m a

    automaton Data.Stream

    Constantly perform the same effect, without remembering a state.

  4. constM :: m a -> OptimizedStreamT m a

    automaton Data.Stream.Optimized

    A stateless stream. This function is typically preferable over constM, since the optimized version doesn't create a state type.

  5. constM :: Functor m => m a -> Recursive m a

    automaton Data.Stream.Recursive

    Constantly perform the same effect, without remembering a state.

  6. _xraySegmentHttpRequestMethod :: XRaySegmentHttpRequest -> !Maybe Text

    aws-xray-client Network.AWS.XRayClient.Segment

    The request method. For example, GET.

  7. xraySegmentHttpRequestMethod :: Lens' XRaySegmentHttpRequest (Maybe Text)

    aws-xray-client Network.AWS.XRayClient.Segment

    No documentation available.

  8. BlockedOnSTM :: BlockReason

    base-prelude BasePrelude

    blocked in retry in an STM transaction

  9. catchSTM :: Exception e => STM a -> (e -> STM a) -> STM a

    base-prelude BasePrelude

    Exception handling within STM actions. catchSTM m f catches any exception thrown by m using throwSTM, using the function f to handle the exception. If an exception is thrown, any changes made by m are rolled back, but changes prior to m persist.

  10. throwSTM :: Exception e => e -> STM a

    base-prelude BasePrelude

    A variant of throw that can only be used within the STM monad. Throwing an exception in STM aborts the transaction and propagates the exception. If the exception is caught via catchSTM, only the changes enclosed by the catch are rolled back; changes made outside of catchSTM persist. If the exception is not caught inside of the STM, it is re-thrown by atomically, and the entire STM is rolled back. Although throwSTM has a type that is an instance of the type of throw, the two functions are subtly different:

    throw e    `seq` x  ===> throw e
    throwSTM e `seq` x  ===> x
    
    The first example will cause the exception e to be raised, whereas the second one won't. In fact, throwSTM will only cause an exception to be raised when it is used within the STM monad. The throwSTM variant should be used in preference to throw to raise an exception within the STM monad because it guarantees ordering with respect to other STM operations, whereas throw does not.

Page 88 of many | Previous | Next