Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
orElse :: STM a -> STM a -> STM abase GHC.Conc Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries.
orElse :: STM a -> STM a -> STM abase GHC.Conc.Sync Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries.
orElse :: STM a -> STM a -> STM astm Control.Monad.STM Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries.
-
test-framework Test.Framework.Providers.API No documentation available.
orElse :: STM a -> STM a -> STM aunliftio UnliftIO.STM Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries.
orElse :: Maybe a -> Maybe a -> Maybe asyb Data.Generics.Aliases Left-biased choice on maybes
Examples
>>> orElse Nothing Nothing Nothing
>>> orElse Nothing (Just 'a') Just 'a'
>>> orElse (Just 'a') Nothing Just 'a'
>>> orElse (Just 'a') (Just 'b') Just 'a'
-
ghc GHC.Data.Maybe Flipped version of fromMaybe, useful for chaining.
orElse :: ArrowIf a => a b c -> a b c -> a b chxt Control.Arrow.ArrowIf f `orElse` g : directional choice: if f succeeds, the result of f is the result, else g is applied
-
ghc-lib-parser GHC.Data.Maybe Flipped version of fromMaybe, useful for chaining.
orElse :: STM a -> STM a -> STM aprotolude Protolude Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries.
Page 1 of many | Next