Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

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

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

    No documentation available.

  2. BlockedOnSTM :: BlockReason

    base-prelude BasePrelude

    blocked in retry in an STM transaction

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

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

  5. unsafeIOToSTM :: IO a -> STM a

    base-prelude BasePrelude

    Unsafely performs IO in the STM monad. Beware: this is a highly dangerous thing to do.

    • The STM implementation will often run transactions multiple times, so you need to be prepared for this if your IO has any side effects.
    • The STM implementation will abort transactions that are known to be invalid and need to be restarted. This may happen in the middle of unsafeIOToSTM, so make sure you don't acquire any resources that need releasing (exception handlers are ignored when aborting the transaction). That includes doing any IO using Handles, for example. Getting this wrong will probably lead to random deadlocks.
    • The transaction may have seen an inconsistent view of memory when the IO runs. Invariants that you expect to be true throughout your program may not be true inside a transaction, due to the way transactions are implemented. Normally this wouldn't be visible to the programmer, but using unsafeIOToSTM can expose it.

  6. insertSelectStmt :: InsertValues -> Select

    beam-core Database.Beam.Backend.SQL.AST

    No documentation available.

  7. deleteStmt :: IsSql92DeleteSyntax delete => Sql92DeleteTableNameSyntax delete -> Maybe Text -> Maybe (Sql92DeleteExpressionSyntax delete) -> delete

    beam-core Database.Beam.Backend.SQL.SQL92

    No documentation available.

  8. insertStmt :: IsSql92InsertSyntax insert => Sql92InsertTableNameSyntax insert -> [Text] -> Sql92InsertValuesSyntax insert -> insert

    beam-core Database.Beam.Backend.SQL.SQL92

    No documentation available.

  9. selectStmt :: IsSql92SelectSyntax select => Sql92SelectSelectTableSyntax select -> [Sql92SelectOrderingSyntax select] -> Maybe Integer -> Maybe Integer -> select

    beam-core Database.Beam.Backend.SQL.SQL92

    No documentation available.

  10. selectTableStmt :: IsSql92SelectTableSyntax select => Maybe (Sql92SelectTableSetQuantifierSyntax select) -> Sql92SelectTableProjectionSyntax select -> Maybe (Sql92SelectTableFromSyntax select) -> Maybe (Sql92SelectTableExpressionSyntax select) -> Maybe (Sql92SelectTableGroupingSyntax select) -> Maybe (Sql92SelectTableExpressionSyntax select) -> select

    beam-core Database.Beam.Backend.SQL.SQL92

    No documentation available.

Page 88 of many | Previous | Next