Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

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

  1. MarkupParseFlagsPrefixErrorPosition :: MarkupParseFlags

    gi-glib GI.GLib.Flags

    Normally errors caught by GMarkup itself have line/column information prefixed to them to let the caller know the location of the error. When this flag is set the location information is also prefixed to errors generated by the MarkupParser implementation functions

  2. asciiXdigitValue :: (HasCallStack, MonadIO m) => Int8 -> m Int32

    gi-glib GI.GLib.Functions

    Determines the numeric value of a character as a hexadecimal digit. If the character is not a hex digit according to GLib.ascii_isxdigit, -1 is returned. Differs from unicharXdigitValue because it takes a char, so there's no worry about sign extension if characters are signed. Differs from unicharXdigitValue because it takes a char, so there's no worry about sign extension if characters are signed.

  3. prefixErrorLiteral :: (HasCallStack, MonadIO m) => Maybe GError -> Text -> m (Maybe GError)

    gi-glib GI.GLib.Functions

    Prefixes prefix to an existing error message. If err or *err is Nothing (i.e.: no error variable) then do nothing. Since: 2.70

  4. strHasPrefix :: (HasCallStack, MonadIO m) => Text -> Text -> m Bool

    gi-glib GI.GLib.Functions

    Looks whether the string str begins with prefix. Since: 2.2

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

    gi-glib GI.GLib.Functions

    Looks whether a string ends with suffix. Since: 2.2

  6. unixErrorQuark :: (HasCallStack, MonadIO m) => m Word32

    gi-glib GI.GLib.Functions

    No description available in the introspection data.

  7. unixFdAddFull :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> [IOCondition] -> UnixFDSourceFunc -> m Word32

    gi-glib GI.GLib.Functions

    Sets a function to be called when the IO condition, as specified by condition becomes true for fd. This is the same as g_unix_fd_add(), except that it allows you to specify a non-default priority and a provide a DestroyNotify for userData. Since: 2.36

  8. unixFdSourceNew :: (HasCallStack, MonadIO m) => Int32 -> [IOCondition] -> m Source

    gi-glib GI.GLib.Functions

    Creates a Source to watch for a particular I/O condition on a file descriptor. The source will never close the fd — you must do it yourself. Any callback attached to the returned Source must have type UnixFDSourceFunc. Since: 2.36

  9. unixGetPasswdEntry :: (HasCallStack, MonadIO m) => Text -> m (Ptr ())

    gi-glib GI.GLib.Functions

    Get the passwd file entry for the given userName using getpwnam_r(). This can fail if the given userName doesn’t exist. The returned struct passwd has been allocated using malloc and should be freed using free. The strings referenced by the returned struct are included in the same allocation, so are valid until the struct passwd is freed. This function is safe to call from multiple threads concurrently. You will need to include pwd.h to get the definition of struct passwd. Since: 2.64

  10. unixOpenPipe :: (HasCallStack, MonadIO m) => [Int32] -> Int32 -> m ()

    gi-glib GI.GLib.Functions

    Similar to the UNIX pipe() call, but on modern systems like Linux uses the pipe2() system call, which atomically creates a pipe with the configured flags. As of GLib 2.78, the supported flags are O_CLOEXEC/FD_CLOEXEC (see below) and O_NONBLOCK. Prior to GLib 2.78, only FD_CLOEXEC was supported — if you wanted to configure O_NONBLOCK then that had to be done separately with fcntl(). Since GLib 2.80, the constants UnixPipeEndRead and UnixPipeEndWrite can be used as mnemonic indexes in fds. It is a programmer error to call this function with unsupported flags, and a critical warning will be raised. As of GLib 2.78, it is preferred to pass O_CLOEXEC in, rather than FD_CLOEXEC, as that matches the underlying pipe() API more closely. Prior to 2.78, only FD_CLOEXEC was supported. Support for FD_CLOEXEC may be deprecated and removed in future. Since: 2.30

Page 118 of many | Previous | Next