Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SingularTransactionRef
- singularTransaction :: Foldable t => t GraphRefTransactionMarker -> SingularTransactionRef
- inSameTransaction :: GraphRefRelationalExpr -> GraphRefRelationalExpr -> Maybe GraphRefTransactionMarker
- singularTransactions :: (Foldable f, Foldable t) => f (t GraphRefTransactionMarker) -> SingularTransactionRef
Documentation
singularTransaction :: Foldable t => t GraphRefTransactionMarker -> SingularTransactionRef Source #
return `Just transid` if this GraphRefRelationalExpr refers to just one transaction in the graph. This is useful for determining if certain optimizations can apply.
inSameTransaction :: GraphRefRelationalExpr -> GraphRefRelationalExpr -> Maybe GraphRefTransactionMarker Source #
Return True if two GraphRefRelationalExpr
s both refer exclusively to the same transaction (or none at all).
singularTransactions :: (Foldable f, Foldable t) => f (t GraphRefTransactionMarker) -> SingularTransactionRef Source #