Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hGetContents :: Handle -> IO Stringpathtype System.Path.IO Computation hGetContents hdl returns the list of characters corresponding to the unread portion of the channel or file managed by hdl, which is put into an intermediate state, semi-closed. In this state, hdl is effectively closed, but items are read from hdl on demand and accumulated in a special list returned by hGetContents hdl. Any operation that fails because a handle is closed, also fails if a handle is semi-closed. The only exception is hClose. A semi-closed handle becomes closed:
- if hClose is applied to it;
- if an I/O error occurs when reading an item from the handle;
- or once the entire contents of the handle has been read.
- isEOFError if the end of file has been reached.
hGetContents :: Handle -> IO ByteStringrawfilepath Data.ByteString.RawFilePath Read a handle's entire contents strictly into a ByteString. This function reads chunks at a time, increasing the chunk size on each read. The final string is then reallocated to the appropriate size. For files > half of available memory, this may lead to memory exhaustion. Consider using readFile in this case. The Handle is closed once the contents have been read, or if an exception is thrown.
hGetContents :: MonadIO m => Handle -> m ByteStringclassy-prelude-yesod ClassyPrelude.Yesod Strictly read the contents of the given Handle into a ByteString.
targetContents :: Target -> !Maybe (InputFileBuffer, UTCTime)ghc-lib GHC Optional in-memory buffer containing the source code GHC should use for this target instead of reading it from disk. Since GHC version 8.10 modules which require preprocessors such as Literate Haskell or CPP to run are also supported. If a corresponding source file does not exist on disk this will result in a SourceError exception if targetId = TargetModule _ is used. However together with targetId = TargetFile _ GHC will not complain about the file missing.
sGetContents :: Handle -> SSL -> IO ByteStringhappstack-server-tls Happstack.Server.Internal.TimeoutSocketTLS No documentation available.
hGetContents :: StringRWIO s => Handle -> IO sstring-class Data.String.Class Read n bytes *or* characters, depending on the implementation into a ByteString, directly from the specified Handle Whether or not this function is lazy depends on the instance; laziness is preferred.