summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-22 17:12:10 (GMT)
committerBen Gamari <ben@smart-cactus.org>2019-10-22 17:13:36 (GMT)
commit3ad35f766e6869087c97a5c8129ab06ddf1856d4 (patch)
tree4089e281883fc60913eb16ed5e65ae3bce038daf
parentc4c9904b324736dc5d190a91418e8d8f564d4104 (diff)
downloadghc-wip/hunlock-since.zip
ghc-wip/hunlock-since.tar.gz
ghc-wip/hunlock-since.tar.bz2
base: Add @since on GHC.IO.Handle.Lock.hUnlockwip/hunlock-since
Unfortunately this was introduced in base-4.11.0 (GHC 8.4.1) whereas the other locking primitives were added in base-4.10.0 (GHC 8.2.1).
-rw-r--r--libraries/base/GHC/IO/Handle/Lock.hsc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/base/GHC/IO/Handle/Lock.hsc b/libraries/base/GHC/IO/Handle/Lock.hsc
index ec85ffd..0b700f8 100644
--- a/libraries/base/GHC/IO/Handle/Lock.hsc
+++ b/libraries/base/GHC/IO/Handle/Lock.hsc
@@ -100,6 +100,8 @@ hTryLock :: Handle -> LockMode -> IO Bool
hTryLock h mode = lockImpl h "hTryLock" mode False
-- | Release a lock taken with 'hLock' or 'hTryLock'.
+--
+-- @since 4.11.0.0
hUnlock :: Handle -> IO ()
hUnlock = unlockImpl