diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2020-03-31 08:53:36 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-01 01:20:38 -0400 |
commit | 7627eab5dd882eb6f1567e3ae95c6c770830a5eb (patch) | |
tree | ecde691d95f74e9959aebc3c7be2441b1393960f /libraries | |
parent | 9b39f2e6f63ae50cedd96eaf49146de8ed00fbc8 (diff) | |
download | haskell-7627eab5dd882eb6f1567e3ae95c6c770830a5eb.tar.gz |
Fix the changelog/@since information for hGetContents'/getContents'/readFile'
Fixes #17979.
[ci skip]
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/GHC/IO/Handle/Text.hs | 2 | ||||
-rw-r--r-- | libraries/base/System/IO.hs | 4 | ||||
-rw-r--r-- | libraries/base/changelog.md | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libraries/base/GHC/IO/Handle/Text.hs b/libraries/base/GHC/IO/Handle/Text.hs index b1533e3c5d..20a449f39d 100644 --- a/libraries/base/GHC/IO/Handle/Text.hs +++ b/libraries/base/GHC/IO/Handle/Text.hs @@ -466,7 +466,7 @@ getSomeCharacters handle_@Handle__{..} buf@Buffer{..} = -- | The 'hGetContents'' operation reads all input on the given handle -- before returning it as a 'String' and closing the handle. -- --- @since 4.14.0.0 +-- @since 4.15.0.0 hGetContents' :: Handle -> IO String hGetContents' handle = do diff --git a/libraries/base/System/IO.hs b/libraries/base/System/IO.hs index 70bc61c90b..4f3693a872 100644 --- a/libraries/base/System/IO.hs +++ b/libraries/base/System/IO.hs @@ -312,7 +312,7 @@ getContents = hGetContents stdin -- which is fully read before being returned -- (same as 'hGetContents'' 'stdin'). -- --- @since 4.14.0.0 +-- @since 4.15.0.0 getContents' :: IO String getContents' = hGetContents' stdin @@ -337,7 +337,7 @@ readFile name = openFile name ReadMode >>= hGetContents -- returns the contents of the file as a string. -- The file is fully read before being returned, as with 'getContents''. -- --- @since 4.14.0.0 +-- @since 4.15.0.0 readFile' :: FilePath -> IO String readFile' name = openFile name ReadMode >>= hGetContents' diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md index 741b5ebca2..5abb4701b4 100644 --- a/libraries/base/changelog.md +++ b/libraries/base/changelog.md @@ -6,6 +6,9 @@ call, ensuring that the call can be interrupted with `SIGINT` on POSIX systems. + * Add `hGetContents'`, `getContents'`, and `readFile'` in `System.IO`: + Strict IO variants of `hGetContents`, `getContents`, and `readFile`. + ## 4.14.0.0 *TBA* * Bundled with GHC 8.10.1 @@ -51,9 +54,6 @@ * Add `IsList` instance for `ZipList`. - * Add `hGetContents'`, `getContents'`, and `readFile'` in `System.IO`: - Strict IO variants of `hGetContents`, `getContents`, and `readFile`. - ## 4.13.0.0 *July 2019* * Bundled with GHC 8.8.1 |