Skip to content
Snippets Groups Projects
Unverified Commit 6d252184 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #10389 from MercuryTechnologies/wiggles/fix-withfilecontents-comment

Fix `withFileContents` documentation (lazy IO strikes again)
parents 4e194c69 76d5f2f8
No related branches found
No related tags found
No related merge requests found
Pipeline #101114 passed
......@@ -153,8 +153,8 @@ wrapLine width = wrap 0 []
-- | Gets the contents of a file, but guarantee that it gets closed.
--
-- The file is read lazily but if it is not fully consumed by the action then
-- the remaining input is truncated and the file is closed.
-- The file is read lazily; if it is not fully consumed by the action then an
-- exception is thrown.
withFileContents :: FilePath -> (String -> IO a) -> IO a
withFileContents name action =
withFile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment