Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. setWorkingDir :: FilePath -> ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed.Internal

    Set the working directory of the child process. Default: current process's working directory.

  2. setWorkingDirInherit :: ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed.Internal

    Inherit the working directory from the parent process.

  3. setStdGen :: MonadIO m => StdGen -> m ()

    MonadRandom Control.Monad.Random.Lazy

    Sets the global pseudo-random number generator. Overwrites the contents of globalStdGen

  4. setStdGen :: MonadIO m => StdGen -> m ()

    MonadRandom Control.Monad.Random.Strict

    Sets the global pseudo-random number generator. Overwrites the contents of globalStdGen

  5. setApplicationName :: (HasCallStack, MonadIO m) => Text -> m ()

    gi-glib GI.GLib.Functions

    Sets a human-readable name for the application. This name should be localized if possible, and is intended for display to the user. Contrast with setPrgname, which sets a non-localized name. setPrgname will be called automatically by gtk_init(), but setApplicationName will not. Note that for thread safety reasons, this function can only be called once. The application name will be used in contexts such as error messages, or when displaying an application's name in the task list. Since: 2.2

  6. setErrorLiteral :: (HasCallStack, MonadIO m) => Word32 -> Int32 -> Text -> m GError

    gi-glib GI.GLib.Functions

    Does nothing if err is Nothing; if err is non-Nothing, then *err must be Nothing. A new GError is created and assigned to *err. Unlike g_set_error(), message is not a printf()-style format string. Use this function if message contains text you don't have control over, that could include printf() escape sequences. Since: 2.18

  7. setPrgname :: (HasCallStack, MonadIO m) => Text -> m ()

    gi-glib GI.GLib.Functions

    Sets the name of the program. This name should not be localized, in contrast to setApplicationName. If you are using GApplication the program name is set in g_application_run(). In case of GDK or GTK it is set in gdk_init(), which is called by gtk_init() and the GtkApplication::startup handler. The program name is found by taking the last component of argv[0]. Since GLib 2.72, this function can be called multiple times and is fully thread safe. Prior to GLib 2.72, this function could only be called once per process.

  8. setenv :: (HasCallStack, MonadIO m) => [Char] -> [Char] -> Bool -> m Bool

    gi-glib GI.GLib.Functions

    Sets an environment variable. On UNIX, both the variable's name and value can be arbitrary byte strings, except that the variable's name cannot contain '='. On Windows, they should be in UTF-8. Note that on some systems, when variables are overwritten, the memory used for the previous variables and its value isn't reclaimed. You should be mindful of the fact that environment variable handling in UNIX is not thread-safe, and your program may crash if one thread calls setenv while another thread is calling getenv(). (And note that many functions, such as gettext(), call getenv() internally.) This function is only safe to use at the very start of your program, before creating any other threads (or creating objects that create worker threads of their own). If you need to set up the environment for a child process, you can use getEnviron to get an environment array, modify that with environSetenv and environUnsetenv, and then pass that array directly to execvpe(), spawnAsync, or the like. Since: 2.4

  9. setByteArrayData :: MonadIO m => ByteArray -> Word8 -> m ()

    gi-glib GI.GLib.Structs.ByteArray

    Set the value of the “data” field. When overloading is enabled, this is equivalent to

    set byteArray [ #data := value ]
    

  10. setByteArrayLen :: MonadIO m => ByteArray -> Word32 -> m ()

    gi-glib GI.GLib.Structs.ByteArray

    Set the value of the “len” field. When overloading is enabled, this is equivalent to

    set byteArray [ #len := value ]
    

Page 228 of many | Previous | Next