Skip to content

Commit 07c95fc

Browse files
committed
Wibble
1 parent 6767c5e commit 07c95fc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/T15Win.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import qualified System.File.PlatformPath as PFP
1212
import System.IO
1313
import System.IO.Temp
1414

15-
import Control.Exception (bracketOnError)
1615
import Data.Bits
1716
import System.OsPath.Windows ( WindowsPath, pstr )
1817
import qualified System.OsPath.Windows as WS
@@ -36,7 +35,7 @@ main = withSystemTempDirectory "tar-test" $ \baseDir' -> do
3635
]
3736

3837
openFile32 :: WindowsPath -> IOMode -> IO Win32.HANDLE
39-
openFile32 fp iomode =
38+
openFile32 fp _iomode =
4039
WS.createFile
4140
fp
4241
Win32.gENERIC_READ

windows/System/File/Platform.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)