Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Sound.ALSA.Exception
Description
ALSA does not distinguish between programming errors and runtime exceptions, which is sad, but we have to cope with it.
Synopsis
- data T = Cons {
- location :: String
- description :: String
- code :: 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
- rethrow :: IO a -> IO a
- strerror :: Errno -> IO String
- snd_strerror :: Errno -> IO CString
Documentation
Constructors
Cons | |
Fields
|
Instances
Exception T Source # | |
Defined in Sound.ALSA.Exception Methods toException :: T -> SomeException fromException :: SomeException -> Maybe T displayException :: T -> String backtraceDesired :: T -> Bool | |
Show T Source # | |
checkResult :: Integral a => String -> a -> IO a Source #
checkResult_ :: Integral a => String -> a -> IO () Source #
checkResultMaybe :: String -> (CInt -> a) -> (CInt -> Maybe a) -> CInt -> IO a Source #
Arguments
:: Errno | |
-> IO a | Action |
-> IO a | Handler |
-> IO a |
snd_strerror :: Errno -> IO CString Source #