need more polymorphism
This commit is contained in:
parent
696ed9b3f9
commit
6c3cea7699
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ dropLock = closeHandle
|
|||
|
||||
{- If the initial lock fails, this is a BUSY wait, and does not
|
||||
- guarentee FIFO order of waiters. In other news, Windows is a POS. -}
|
||||
waitToLock :: IO (Maybe LockHandle) -> IO LockHandle
|
||||
waitToLock :: IO (Maybe lockhandle) -> IO lockhandle
|
||||
waitToLock locker = takelock
|
||||
where
|
||||
takelock = go =<< locker
|
||||
|
|
|
@ -45,5 +45,5 @@ lockExclusive file = tryMakeLockHandle
|
|||
|
||||
{- If the initial lock fails, this is a BUSY wait, and does not
|
||||
- guarentee FIFO order of waiters. In other news, Windows is a POS. -}
|
||||
waitToLock :: IO (Maybe LockHandle) -> IO LockHandle
|
||||
waitToLock :: IO (Maybe lockhandle) -> IO lockhandle
|
||||
waitToLock = F.waitToLock
|
||||
|
|
Loading…
Reference in a new issue