diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-22 13:12:10 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-11-03 13:17:58 -0500 |
commit | 68dc5b0aa3b282065572422017cac1c31d326302 (patch) | |
tree | dd20c295e7fe6ccc8a9950af868ca7dce8c08b3f | |
parent | 4c376e30df740e50322c320fdf2188657bd353b0 (diff) | |
download | haskell-68dc5b0aa3b282065572422017cac1c31d326302.tar.gz |
base: Add @since on GHC.IO.Handle.Lock.hUnlock
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).
(cherry picked from commit 3ad35f766e6869087c97a5c8129ab06ddf1856d4)
-rw-r--r-- | libraries/base/GHC/IO/Handle/Lock.hsc | 2 |
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 ec85ffd25e..0b700f8944 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 |