Skip to content
Snippets Groups Projects
Commit cd4fb516 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Follow the removal of the Eq superclass of Num

parent f55638fb
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,13 @@ module System.Posix.Error (
import Foreign
import Foreign.C
throwErrnoPathIfMinus1Retry :: Num a => String -> FilePath -> IO a -> IO a
throwErrnoPathIfMinus1Retry :: (Eq a, Num a)
=> String -> FilePath -> IO a -> IO a
throwErrnoPathIfMinus1Retry loc path f =
throwErrnoPathIfRetry (== -1) loc path f
throwErrnoPathIfMinus1Retry_ :: Num a => String -> FilePath -> IO a -> IO ()
throwErrnoPathIfMinus1Retry_ :: (Eq a, Num a)
=> String -> FilePath -> IO a -> IO ()
throwErrnoPathIfMinus1Retry_ loc path f =
void $ throwErrnoPathIfRetry (== -1) loc path f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment