| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | wren@community.haskell.org |
Prelude.Extras
Description
This module provides additional primitive utilities I often want. They're so simple I'm surprised the Prelude lacks them, and they're too trivial to put anywhere else.
See also Control.Monad.Extras, Control.Exception.Extras, Data.ByteString.Char8.Extras.
Documentation
swap :: (a, b) -> (b, a)Source
Swap the order of a tuple pair.
This is provided by Data.Tuple as of base-4.3.0.0
class Monad m => MonadPlus m where
Monads that also support choice and failure.