diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-22 13:12:10 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-10-22 13:13:36 -0400 |
commit | 3ad35f766e6869087c97a5c8129ab06ddf1856d4 (patch) | |
tree | 4089e281883fc60913eb16ed5e65ae3bce038daf | |
parent | c4c9904b324736dc5d190a91418e8d8f564d4104 (diff) | |
download | haskell-wip/hunlock-since.tar.gz |
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.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 |