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.

  1. hGetContents :: Handle -> IO String

    pathtype 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.
    Once a semi-closed handle becomes closed, the contents of the associated list becomes fixed. The contents of this final list is only partially specified: it will contain at least all the items of the stream that were evaluated prior to the handle becoming closed. Any I/O errors encountered while a handle is semi-closed are simply discarded. This operation may fail with:

  2. hGetContents :: Handle -> IO ByteString

    rawfilepath 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.

  3. hGetContents :: MonadIO m => Handle -> m ByteString

    classy-prelude-yesod ClassyPrelude.Yesod

    Strictly read the contents of the given Handle into a ByteString.

  4. 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.

  5. sGetContents :: Handle -> SSL -> IO ByteString

    happstack-server-tls Happstack.Server.Internal.TimeoutSocketTLS

    No documentation available.

  6. hGetContents :: StringRWIO s => Handle -> IO s

    string-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.

Page 12 of many | Previous | Next