Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. pathBufSetExtension :: (HasCallStack, MonadIO m) => PathBuf -> Maybe [Char] -> m Bool

    gi-glib GI.GLib.Structs.PathBuf

    Adds an extension to the file name in the path buffer. If extension is NULL, the extension will be unset. If the path buffer does not have a file name set, this function returns FALSE and leaves the path buffer unmodified. Since: 2.76

  2. pathBufSetFilename :: (HasCallStack, MonadIO m) => PathBuf -> [Char] -> m Bool

    gi-glib GI.GLib.Structs.PathBuf

    Sets the file name of the path. If the path buffer is empty, the filename is left unset and this function returns FALSE. If the path buffer only contains the root element (on Unix-like operating systems) or the drive (on Windows), this is the equivalent of pushing the new fileName. If the path buffer contains a path, this is the equivalent of popping the path buffer and pushing fileName, creating a sibling of the original path.

    C code

    GPathBuf buf, cmp;
    
    g_path_buf_init_from_path (&buf, "/");
    
    g_path_buf_set_filename (&buf, "bar");
    g_path_buf_init_from_path (&cmp, "/bar");
    g_assert_true (g_path_buf_equal (&buf, &cmp));
    g_path_buf_clear (&cmp);
    
    g_path_buf_set_filename (&buf, "baz.txt");
    g_path_buf_init_from_path (&cmp, "/baz.txt");
    g_assert_true (g_path_buf_equal (&buf, &cmp);
    g_path_buf_clear (&cmp);
    
    g_path_buf_clear (&buf);
    
    Since: 2.76

  3. randSetSeed :: (HasCallStack, MonadIO m) => Rand -> Word32 -> m ()

    gi-glib GI.GLib.Structs.Rand

    Sets the seed for the random number generator Rand to seed.

  4. randSetSeedArray :: (HasCallStack, MonadIO m) => Rand -> Word32 -> Word32 -> m ()

    gi-glib GI.GLib.Structs.Rand

    Initializes the random number generator by an array of longs. Array can be of arbitrary size, though only the first 624 values are taken. This function is useful if you have many low entropy seeds, or if you require more then 32 bits of actual entropy for your application. Since: 2.4

  5. scannerSetScope :: (HasCallStack, MonadIO m) => Scanner -> Word32 -> m Word32

    gi-glib GI.GLib.Structs.Scanner

    Sets the current scope.

  6. scannerSyncFileOffset :: (HasCallStack, MonadIO m) => Scanner -> m ()

    gi-glib GI.GLib.Structs.Scanner

    Rewinds the filedescriptor to the current buffer position and blows the file read ahead buffer. This is useful for third party uses of the scanners filedescriptor, which hooks onto the current scanning position.

  7. clearScannerConfigCsetIdentifierFirst :: MonadIO m => ScannerConfig -> m ()

    gi-glib GI.GLib.Structs.ScannerConfig

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

    clear #csetIdentifierFirst
    

  8. clearScannerConfigCsetIdentifierNth :: MonadIO m => ScannerConfig -> m ()

    gi-glib GI.GLib.Structs.ScannerConfig

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

    clear #csetIdentifierNth
    

  9. clearScannerConfigCsetSkipCharacters :: MonadIO m => ScannerConfig -> m ()

    gi-glib GI.GLib.Structs.ScannerConfig

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

    clear #csetSkipCharacters
    

  10. getScannerConfigCsetIdentifierFirst :: MonadIO m => ScannerConfig -> m (Maybe Text)

    gi-glib GI.GLib.Structs.ScannerConfig

    Get the value of the “cset_identifier_first” field. When overloading is enabled, this is equivalent to

    get scannerConfig #csetIdentifierFirst
    

Page 1190 of many | Previous | Next