File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import qualified System.File.PlatformPath as PFP
1212import System.IO
1313import System.IO.Temp
1414
15- import Control.Exception (bracketOnError )
1615import Data.Bits
1716import System.OsPath.Windows ( WindowsPath , pstr )
1817import qualified System.OsPath.Windows as WS
@@ -36,7 +35,7 @@ main = withSystemTempDirectory "tar-test" $ \baseDir' -> do
3635 ]
3736
3837openFile32 :: WindowsPath -> IOMode -> IO Win32. HANDLE
39- openFile32 fp iomode =
38+ openFile32 fp _iomode =
4039 WS. createFile
4140 fp
4241 Win32. gENERIC_READ
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ openFile fp' iomode = (`ioeSetWsPath` fp') `modifyIOError` do
8181#endif
8282 Nothing )
8383 Win32. closeHandle
84- (toHandle fp iomode)
84+ (toHandle fp' iomode)
8585 where
8686 accessMode = case iomode of
8787 ReadMode -> Win32. gENERIC_READ
You can’t perform that action at this time.
0 commit comments