safe-lazy-io-0.1: A library providing safe lazy IO features.Source codeContentsIndex
System.IO.Unsafe.GetContents
Portabilitynon-portable
Stabilityinternal
MaintainerNicolas Pouillard <nicolas.pouillard@gmail.com>
Description
This code is extracted from GHC sources and changed to no longer discards I/O errors.
Synopsis
unsafeHGetContents :: Handle -> IO String
lazyRead :: Handle -> IO String
Documentation
unsafeHGetContents :: Handle -> IO StringSource

unsafeHGetContents is pretty much like hGetContents but does not discards I/O errors get during the lazy reading.

This code was copy/pasted from the GHC version of hGetContents.

lazyRead :: Handle -> IO StringSource
Produced by Haddock version 2.4.2