alternative-io-0.0.1: IO as Alternative instance (deprecated)

Safe HaskellSafe-Infered

Data.Alternative.IO

Description

IO as Alternative instance.

If the left IO monad of (<|>) causes an error or goNext is used, the right IO monad is executed.

Of course, side effects cannot be rolled back. This means that this Alternative instance breaks the Alternative laws. But it's common in parsers.

Synopsis

Documentation

goNext :: IO aSource

Go to the next IO monad by throwing AltIOgoNext.

runAnyOne :: [IO a] -> IO aSource

Run any one IO monad.