/usr/share/doc/libghc-io-choice-doc/html/io-choice.txt is in libghc-io-choice-doc 0.0.5-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Choice for IO and lifted IO
--
-- Choice for IO and lifted IO
@package io-choice
@version 0.0.5
-- | This package provides the choice operator (<a>||></a>) for lifted
-- IO monad.
module Control.Exception.IOChoice.Lifted
-- | If <a>IOException</a> occurs or <a>goNext</a> is used in the left
-- monad, then the right monad is performed. Note that <a>fail</a> throws
-- <a>IOException</a>.
(||>) :: MonadBaseControl IO m => m a -> m a -> m a
-- | Go to the next <a>IO</a> monad by throwing <a>IOException</a>.
goNext :: (MonadIO m, MonadBase IO m) => m a
-- | Run any one lifted <a>IO</a> monad.
runAnyOne :: (MonadIO m, MonadBaseControl IO m) => [m a] -> m a
-- | This package provides a function to generate a choice operator in
-- lifted IO monad by specifying exceptions to be caught.
module Control.Exception.IOChoice.Lifted.TH
-- | A function to generate a choice operator in lifted IO monad.
-- <a>IOException</a> is automatically added to specified exceptions. So,
-- <a>goNext</a> can be used with the new operator.
--
-- <pre>
-- {-# LANGUAGE TemplateHaskell #-}
-- import Control.Exception
-- import Control.Exception.IOChoice.Lifted.TH
--
-- (||>>) :: MonadBaseControl IO m => m a -> m a -> m a
-- (||>>) = $(newIOChoice [''ErrorCall, ''ArithException])
-- </pre>
newIOChoice :: [Name] -> ExpQ
-- | This package provides a function to generate a choice operator in IO
-- monad by specifying exceptions to be caught.
module Control.Exception.IOChoice.TH
-- | A function to generate a choice operator in IO monad.
-- <a>IOException</a> is automatically added to specified exceptions. So,
-- <a>goNext</a> can be used with the new operator.
--
-- <pre>
-- {-# LANGUAGE TemplateHaskell #-}
-- import Control.Exception
-- import Control.Exception.IOChoice.TH
--
-- (||>>) :: IO a -> IO a -> IO a
-- (||>>) = $(newIOChoice [''ErrorCall, ''ArithException])
-- </pre>
newIOChoice :: [Name] -> ExpQ
-- | This package provides the choice operator (<a>||></a>) for IO
-- monad.
module Control.Exception.IOChoice
-- | If <a>IOException</a> occurs or <a>goNext</a> is used in the left IO,
-- then the right IO is performed. Note that <a>fail</a> throws
-- <a>IOException</a>.
(||>) :: IO a -> IO a -> IO a
-- | Go to the next <a>IO</a> monad by throwing <a>IOException</a>.
goNext :: IO a
-- | Run any one <a>IO</a> monad.
runAnyOne :: [IO a] -> IO a
|