Safe Haskell | Safe |
---|---|
Language | Haskell98 |
This package provides the choice operator (||>
) for
IO monad.
Documentation
(||>) :: IO a -> IO a -> IO a infixr 3 Source
If IOException
occurs or goNext
is used in the left IO,
then the right IO is performed. Note that fail
throws IOException
.
Go to the next IO
monad by throwing IOException
.