Skip to content
Snippets Groups Projects
Commit 389820b2 authored by Simon Marlow's avatar Simon Marlow
Browse files

use Control.Monad.void instead of Foreign.void (which is now deprecated)

parent a0379db0
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ module System.Posix.ByteString.FilePath ( ...@@ -29,7 +29,7 @@ module System.Posix.ByteString.FilePath (
throwErrnoPathIfMinus1_ throwErrnoPathIfMinus1_
) where ) where
import Foreign import Foreign hiding ( void )
import Foreign.C hiding ( import Foreign.C hiding (
throwErrnoPath, throwErrnoPath,
throwErrnoPathIf, throwErrnoPathIf,
...@@ -38,6 +38,7 @@ import Foreign.C hiding ( ...@@ -38,6 +38,7 @@ import Foreign.C hiding (
throwErrnoPathIfMinus1, throwErrnoPathIfMinus1,
throwErrnoPathIfMinus1_ ) throwErrnoPathIfMinus1_ )
import Control.Monad
import Data.ByteString import Data.ByteString
import Data.ByteString.Char8 as BC import Data.ByteString.Char8 as BC
import Prelude hiding (FilePath) import Prelude hiding (FilePath)
......
...@@ -28,8 +28,9 @@ module System.Posix.Error ( ...@@ -28,8 +28,9 @@ module System.Posix.Error (
throwErrnoPathIfMinus1Retry_ throwErrnoPathIfMinus1Retry_
) where ) where
import Foreign import Foreign hiding (void)
import Foreign.C import Foreign.C
import Control.Monad
throwErrnoPathIfMinus1Retry :: (Eq a, Num a) throwErrnoPathIfMinus1Retry :: (Eq a, Num a)
=> String -> FilePath -> IO a -> IO a => String -> FilePath -> IO a -> IO a
......
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