Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Partial functions. Import as:
import qualified RIO.Partial as RIO'
-
No documentation available.
class Monad m =>
PrimMonad (m :: Type -> Type)rio RIO.Prelude.Types Class of monads which can perform primitive state-transformer actions.
-
rio RIO.Prelude.Types Proxy is a type that holds no data, but has a phantom parameter of arbitrary type (or even kind). Its use is to provide type information, even though there is no value available of that type (or it may be too costly to create one). Historically, Proxy :: Proxy a is a safer alternative to the undefined :: a idiom.
>>> Proxy :: Proxy (Void, Int -> Int) Proxy
Proxy can even hold types of higher kinds,>>> Proxy :: Proxy Either Proxy
>>> Proxy :: Proxy Functor Proxy
>>> Proxy :: Proxy complicatedStructure Proxy
-
rio RIO.Prelude.Types No documentation available.
-
Interacting with external processes. This module provides a layer on top of System.Process.Typed, with the following additions:
- For efficiency, it will cache PATH lookups.
- For convenience, you can set the working directory and env vars overrides in a RIO environment instead of on the individual calls to the process.
- Built-in support for logging at the debug level.
- Like most of the rio library, you need to create an environment value (this time ProcessContext), and include it in your RIO environment. See mkProcessContext.
- Instead of using the proc function from System.Process.Typed for creating a ProcessConfig, use the locally defined proc function, which will handle overriding environment variables, looking up paths, performing logging, etc.
PathsInvalidInPath :: [FilePath] -> ProcessExceptionrio RIO.Process No documentation available.
data
Process stdin stdout stderrrio RIO.Process A running process. The three type parameters provide the type of the standard input, standard output, and standard error streams. To interact with a Process use the functions from the section Interact with a process.
data
ProcessConfig stdin stdout stderrrio RIO.Process An abstract configuration for a process, which can then be launched into an actual running Process. Takes three type parameters, providing the types of standard input, standard output, and standard error, respectively. There are three ways to construct a value of this type:
- With the proc smart constructor, which takes a command name and a list of arguments.
- With the shell smart constructor, which takes a shell string
- With the IsString instance via OverloadedStrings. If you provide it a string with no spaces (e.g., "date"), it will treat it as a raw command with no arguments (e.g., proc "date" []). If it has spaces, it will use shell.
-
rio RIO.Process Context in which to run processes.