-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | a FFI utility -- -- errno is a small utility to supplement the FFI. Many C functions will -- return a special Int if an error has occurred, and the withErrno* -- functions allow you to lift them into the ErrorT String transformer. I -- found this in some cases useful for when I wanted to handle errors -- from both C & Haskell on equal footing. @package errno @version 0.1 module Foreign.C.Error.Errno withErrno :: (Integral a, MonadIO m) => m a -> ErrorT String m a withErrnoPred :: (Integral a, MonadIO m) => (a -> Bool) -> m a -> ErrorT String m a