summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-22 13:12:10 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-23 05:59:10 -0400
commit8abddac870d4b49f77b5ce56bfeb68328dd0d651 (patch)
tree6fe26ed55405480eb3967b404c25db554bfdc40c
parent266435a7ab865467d5027b1a718f74f85b77b96f (diff)
downloadhaskell-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.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 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