diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-22 13:12:10 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-10-23 05:59:10 -0400 |
commit | 8abddac870d4b49f77b5ce56bfeb68328dd0d651 (patch) | |
tree | 6fe26ed55405480eb3967b404c25db554bfdc40c | |
parent | 266435a7ab865467d5027b1a718f74f85b77b96f (diff) | |
download | haskell-8abddac870d4b49f77b5ce56bfeb68328dd0d651.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).
-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 |