-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | This package provides access to ALSA infrastructure, that is needed by
--   both alsa-seq and alsa-pcm.
@package alsa-core
@version 0.5.0.1


-- | 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 <a>T</a> into an <a>IOError</a>. This produces better a
--   error message than letting an uncaught <a>T</a> 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 GHC.Internal.Exception.Type.Exception Sound.ALSA.Exception.T
instance GHC.Internal.Show.Show Sound.ALSA.Exception.T
