io-choice-0.0.2: Choice for IO and lifted IO

Safe HaskellSafe-Inferred

Control.Exception.IOChoice

Description

This package provides the choice operator (||>) for IO monad.

Synopsis

Documentation

(||>) :: IO a -> IO a -> IO a

If IOException occurs or goNext is used in the left IO, then the right IO is performed. Note that fail throws IOException.

goNext :: IO a

Go to the next IO monad by throwing IOException.

runAnyOne :: [IO a] -> IO a

Run any one IO monad.