-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Binding to the ALSA Library API (Exceptions). -- -- This package provides access to ALSA infrastructure, that is needed by -- both alsa-seq and alsa-pcm. @package alsa-core @version 0.5 -- | ALSA does not distinguish between programming errors and runtime -- exceptions, which is sad, but we have to cope with it. module Sound.ALSA.Exception data T Cons :: String -> String -> Errno -> T location :: T -> String description :: T -> String code :: T -> Errno checkResult :: Integral a => String -> a -> IO a checkResult_ :: Integral a => String -> a -> IO () checkResultMaybe :: String -> (CInt -> a) -> (CInt -> Maybe a) -> CInt -> IO a throw :: String -> Errno -> IO a catch :: IO a -> (T -> IO a) -> IO a catchErrno :: Errno -> IO a -> IO a -> IO a catchXRun :: IO a -> IO a -> IO a showErrno :: Errno -> String show :: T -> String -- | Converts any AlsaException.T into an IOError. This -- produces better a error message than letting an uncaught -- AlsaException.T propagate to the top. rethrow :: IO a -> IO a -- | Returns the message for an error code. strerror :: Errno -> IO String snd_strerror :: Errno -> IO CString instance Typeable T instance Exception T instance Show T