Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readProcessStderr :: MonadIO m => ProcessConfig stdin stdout stderrIgnored -> m (ExitCode, ByteString)

    typed-process System.Process.Typed

    Same as readProcess, but only read the stderr of the process. Original settings for stdout remain.

  2. readProcessStderr_ :: MonadIO m => ProcessConfig stdin stdout stderrIgnored -> m ByteString

    typed-process System.Process.Typed

    Same as readProcessStderr, but instead of returning the ExitCode, checks it with checkExitCode. Exceptions thrown by this function will include stderr.

  3. readProcessStdout :: MonadIO m => ProcessConfig stdin stdoutIgnored stderr -> m (ExitCode, ByteString)

    typed-process System.Process.Typed

    Same as readProcess, but only read the stdout of the process. Original settings for stderr remain.

  4. readProcessStdout_ :: MonadIO m => ProcessConfig stdin stdoutIgnored stderr -> m ByteString

    typed-process System.Process.Typed

    Same as readProcessStdout, but instead of returning the ExitCode, checks it with checkExitCode. Exceptions thrown by this function will include stdout.

  5. readProcess_ :: MonadIO m => ProcessConfig stdin stdoutIgnored stderrIgnored -> m (ByteString, ByteString)

    typed-process System.Process.Typed

    Same as readProcess, but instead of returning the ExitCode, checks it with checkExitCode. Exceptions thrown by this function will include stdout and stderr.

  6. readExtensions :: String -> Maybe (Maybe Language, [Extension])

    haskell-src-exts Language.Haskell.Exts

    Gather the extensions declared in LANGUAGE pragmas at the top of the file. Returns Nothing if the parse of the pragmas fails.

  7. readMatrix :: Storable t => STMatrix s t -> Int -> Int -> ST s t

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  8. readVector :: Storable t => STVector s t -> Int -> ST s t

    hmatrix Numeric.LinearAlgebra.Devel

    No documentation available.

  9. readExactly :: Int -> InputStream ByteString -> IO ByteString

    io-streams System.IO.Streams.ByteString

    Reads an n-byte ByteString from an input stream. Throws a ReadTooShortException if fewer than n bytes were available. Example:

    ghci> Streams.fromList ["long string"] >>= Streams.readExactly 6
    "long s"
    ghci> Streams.fromList ["short"] >>= Streams.readExactly 6
    *** Exception: Short read, expected 6 bytes
    

  10. readProcess :: FilePath -> [String] -> String -> IO String

    io-streams System.IO.Streams.Process

    readProcess forks an external process, reads its standard output strictly, blocking until the process terminates, and returns the output string. The external process inherits the standard error. If an asynchronous exception is thrown to the thread executing readProcess, the forked process will be terminated and readProcess will wait (block) until the process has been terminated. Output is returned strictly, so this is not suitable for launching processes that require interaction over the standard file streams. This function throws an IOError if the process ExitCode is anything other than ExitSuccess. If instead you want to get the ExitCode then use readProcessWithExitCode. Users of this function should compile with -threaded if they want other Haskell threads to keep running while waiting on the result of readProcess.

    > readProcess "date" [] []
    "Thu Feb  7 10:03:39 PST 2008\n"
    
    The arguments are:
    • The command to run, which must be in the $PATH, or an absolute or relative path
    • A list of separate command line arguments to the program. See RawCommand for further discussion of Windows semantics.
    • A string to pass on standard input to the forked process.

Page 120 of many | Previous | Next