gi-glib-2.0.17: GLib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Enums

Contents

Description

 
Synopsis

Enumerations

BookmarkFileError

data BookmarkFileError Source #

Error codes returned by bookmark file parsing.

Constructors

BookmarkFileErrorInvalidUri

URI was ill-formed

BookmarkFileErrorInvalidValue

a requested field was not found

BookmarkFileErrorAppNotRegistered

a requested application did not register a bookmark

BookmarkFileErrorUriNotFound

a requested URI was not found

BookmarkFileErrorRead

document was ill formed

BookmarkFileErrorUnknownEncoding

the text being parsed was in an unknown encoding

BookmarkFileErrorWrite

an error occurred while writing

BookmarkFileErrorFileNotFound

requested file was not found

AnotherBookmarkFileError Int

Catch-all for unknown values

Instances
Enum BookmarkFileError Source # 
Instance details

Defined in GI.GLib.Enums

Eq BookmarkFileError Source # 
Instance details

Defined in GI.GLib.Enums

Ord BookmarkFileError Source # 
Instance details

Defined in GI.GLib.Enums

Show BookmarkFileError Source # 
Instance details

Defined in GI.GLib.Enums

GErrorClass BookmarkFileError Source # 
Instance details

Defined in GI.GLib.Enums

catchBookmarkFileError :: IO a -> (BookmarkFileError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type BookmarkFileError. This is a specialized version of catchGErrorJustDomain.

handleBookmarkFileError :: (BookmarkFileError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type BookmarkFileError. This is a specialized version of handleGErrorJustDomain.

ChecksumType

data ChecksumType Source #

The hashing algorithm to be used by Checksum when performing the digest of some data.

Note that the ChecksumType enumeration may be extended at a later date to include new hashing algorithm types.

Since: 2.16

Constructors

ChecksumTypeMd5

Use the MD5 hashing algorithm

ChecksumTypeSha1

Use the SHA-1 hashing algorithm

ChecksumTypeSha256

Use the SHA-256 hashing algorithm

ChecksumTypeSha512

Use the SHA-512 hashing algorithm (Since: 2.36)

ChecksumTypeSha384

Use the SHA-384 hashing algorithm (Since: 2.51)

AnotherChecksumType Int

Catch-all for unknown values

ConvertError

data ConvertError Source #

Error codes returned by character set conversion routines.

Constructors

ConvertErrorNoConversion

Conversion between the requested character sets is not supported.

ConvertErrorIllegalSequence

Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set.

ConvertErrorFailed

Conversion failed for some reason.

ConvertErrorPartialInput

Partial character sequence at end of input.

ConvertErrorBadUri

URI is invalid.

ConvertErrorNotAbsolutePath

Pathname is not an absolute path.

ConvertErrorNoMemory

No memory available. Since: 2.40

ConvertErrorEmbeddedNul

An embedded NUL character is present in conversion output where a NUL-terminated string is expected. Since: 2.56

AnotherConvertError Int

Catch-all for unknown values

catchConvertError :: IO a -> (ConvertError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type ConvertError. This is a specialized version of catchGErrorJustDomain.

handleConvertError :: (ConvertError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type ConvertError. This is a specialized version of handleGErrorJustDomain.

DateDMY

data DateDMY Source #

This enumeration isn't used in the API, but may be useful if you need to mark a number as a day, month, or year.

Constructors

DateDMYDay

a day

DateDMYMonth

a month

DateDMYYear

a year

AnotherDateDMY Int

Catch-all for unknown values

Instances
Enum DateDMY Source # 
Instance details

Defined in GI.GLib.Enums

Eq DateDMY Source # 
Instance details

Defined in GI.GLib.Enums

Methods

(==) :: DateDMY -> DateDMY -> Bool #

(/=) :: DateDMY -> DateDMY -> Bool #

Ord DateDMY Source # 
Instance details

Defined in GI.GLib.Enums

Show DateDMY Source # 
Instance details

Defined in GI.GLib.Enums

DateMonth

data DateMonth Source #

Enumeration representing a month; values are G_DATE_JANUARY, G_DATE_FEBRUARY, etc. G_DATE_BAD_MONTH is the invalid value.

DateWeekday

data DateWeekday Source #

Enumeration representing a day of the week; G_DATE_MONDAY, G_DATE_TUESDAY, etc. G_DATE_BAD_WEEKDAY is an invalid weekday.

ErrorType

data ErrorType Source #

The possible errors, used in the vError field of TokenValue, when the token is a TokenTypeError.

Constructors

ErrorTypeUnknown

unknown error

ErrorTypeUnexpEof

unexpected end of file

ErrorTypeUnexpEofInString

unterminated string constant

ErrorTypeUnexpEofInComment

unterminated comment

ErrorTypeNonDigitInConst

non-digit character in a number

ErrorTypeDigitRadix

digit beyond radix in a number

ErrorTypeFloatRadix

non-decimal floating point number

ErrorTypeFloatMalformed

malformed floating point number

AnotherErrorType Int

Catch-all for unknown values

FileError

data FileError Source #

Values corresponding to errno codes returned from file operations on UNIX. Unlike errno codes, GFileError values are available on all systems, even Windows. The exact meaning of each code depends on what sort of file operation you were performing; the UNIX documentation gives more details. The following error code descriptions come from the GNU C Library manual, and are under the copyright of that manual.

It's not very portable to make detailed assumptions about exactly which errors will be returned from a given operation. Some errors don't occur on some systems, etc., sometimes there are subtle differences in when a system will report a given error, etc.

Constructors

FileErrorExist

Operation not permitted; only the owner of the file (or other resource) or processes with special privileges can perform the operation.

FileErrorIsdir

File is a directory; you cannot open a directory for writing, or create or remove hard links to it.

FileErrorAcces

Permission denied; the file permissions do not allow the attempted operation.

FileErrorNametoolong

Filename too long.

FileErrorNoent

No such file or directory. This is a "file doesn't exist" error for ordinary files that are referenced in contexts where they are expected to already exist.

FileErrorNotdir

A file that isn't a directory was specified when a directory is required.

FileErrorNxio

No such device or address. The system tried to use the device represented by a file you specified, and it couldn't find the device. This can mean that the device file was installed incorrectly, or that the physical device is missing or not correctly attached to the computer.

FileErrorNodev

The underlying file system of the specified file does not support memory mapping.

FileErrorRofs

The directory containing the new link can't be modified because it's on a read-only file system.

FileErrorTxtbsy

Text file busy.

FileErrorFault

You passed in a pointer to bad memory. (GLib won't reliably return this, don't pass in pointers to bad memory.)

FileErrorLoop

Too many levels of symbolic links were encountered in looking up a file name. This often indicates a cycle of symbolic links.

FileErrorNospc

No space left on device; write operation on a file failed because the disk is full.

FileErrorNomem

No memory available. The system cannot allocate more virtual memory because its capacity is full.

FileErrorMfile

The current process has too many files open and can't open any more. Duplicate descriptors do count toward this limit.

FileErrorNfile

There are too many distinct file openings in the entire system.

FileErrorBadf

Bad file descriptor; for example, I/O on a descriptor that has been closed or reading from a descriptor open only for writing (or vice versa).

FileErrorInval

Invalid argument. This is used to indicate various kinds of problems with passing the wrong argument to a library function.

FileErrorPipe

Broken pipe; there is no process reading from the other end of a pipe. Every library function that returns this error code also generates a 'SIGPIPE' signal; this signal terminates the program if not handled or blocked. Thus, your program will never actually see this code unless it has handled or blocked 'SIGPIPE'.

FileErrorAgain

Resource temporarily unavailable; the call might work if you try again later.

FileErrorIntr

Interrupted function call; an asynchronous signal occurred and prevented completion of the call. When this happens, you should try the call again.

FileErrorIo

Input/output error; usually used for physical read or write errors. i.e. the disk or other physical device hardware is returning errors.

FileErrorPerm

Operation not permitted; only the owner of the file (or other resource) or processes with special privileges can perform the operation.

FileErrorNosys

Function not implemented; this indicates that the system is missing some functionality.

FileErrorFailed

Does not correspond to a UNIX error code; this is the standard "failed for unspecified reason" error code present in all GError error code enumerations. Returned if no specific code applies.

AnotherFileError Int

Catch-all for unknown values

catchFileError :: IO a -> (FileError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type FileError. This is a specialized version of catchGErrorJustDomain.

handleFileError :: (FileError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type FileError. This is a specialized version of handleGErrorJustDomain.

IOChannelError

data IOChannelError Source #

Error codes returned by IOChannel operations.

Constructors

IOChannelErrorFbig

File too large.

IOChannelErrorInval

Invalid argument.

IOChannelErrorIo

IO error.

IOChannelErrorIsdir

File is a directory.

IOChannelErrorNospc

No space left on device.

IOChannelErrorNxio

No such device or address.

IOChannelErrorOverflow

Value too large for defined datatype.

IOChannelErrorPipe

Broken pipe.

IOChannelErrorFailed

Some other error.

AnotherIOChannelError Int

Catch-all for unknown values

catchIOChannelError :: IO a -> (IOChannelError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type IOChannelError. This is a specialized version of catchGErrorJustDomain.

handleIOChannelError :: (IOChannelError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type IOChannelError. This is a specialized version of handleGErrorJustDomain.

IOError

data IOError Source #

IOError is only used by the deprecated functions iOChannelRead, iOChannelWrite, and iOChannelSeek.

Constructors

IOErrorNone

no error

IOErrorAgain

an EAGAIN error occurred

IOErrorInval

an EINVAL error occurred

IOErrorUnknown

another error occurred

AnotherIOError Int

Catch-all for unknown values

Instances
Enum IOError Source # 
Instance details

Defined in GI.GLib.Enums

Eq IOError Source # 
Instance details

Defined in GI.GLib.Enums

Methods

(==) :: IOError -> IOError -> Bool #

(/=) :: IOError -> IOError -> Bool #

Ord IOError Source # 
Instance details

Defined in GI.GLib.Enums

Show IOError Source # 
Instance details

Defined in GI.GLib.Enums

IOStatus

data IOStatus Source #

Stati returned by most of the IOFuncs functions.

Constructors

IOStatusError

An error occurred.

IOStatusNormal

Success.

IOStatusEof

End of file.

IOStatusAgain

Resource temporarily unavailable.

AnotherIOStatus Int

Catch-all for unknown values

KeyFileError

data KeyFileError Source #

Error codes returned by key file parsing.

Constructors

KeyFileErrorUnknownEncoding

the text being parsed was in an unknown encoding

KeyFileErrorParse

document was ill-formed

KeyFileErrorNotFound

the file was not found

KeyFileErrorKeyNotFound

a requested key was not found

KeyFileErrorGroupNotFound

a requested group was not found

KeyFileErrorInvalidValue

a value could not be parsed

AnotherKeyFileError Int

Catch-all for unknown values

catchKeyFileError :: IO a -> (KeyFileError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type KeyFileError. This is a specialized version of catchGErrorJustDomain.

handleKeyFileError :: (KeyFileError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type KeyFileError. This is a specialized version of handleGErrorJustDomain.

LogWriterOutput

data LogWriterOutput Source #

Return values from GLogWriterFuncs to indicate whether the given log entry was successfully handled by the writer, or whether there was an error in handling it (and hence a fallback writer should be used).

If a LogWriterFunc ignores a log entry, it should return LogWriterOutputHandled.

Since: 2.50

Constructors

LogWriterOutputHandled

Log writer has handled the log entry.

LogWriterOutputUnhandled

Log writer could not handle the log entry.

AnotherLogWriterOutput Int

Catch-all for unknown values

MarkupError

data MarkupError Source #

Error codes returned by markup parsing.

Constructors

MarkupErrorBadUtf8

text being parsed was not valid UTF-8

MarkupErrorEmpty

document contained nothing, or only whitespace

MarkupErrorParse

document was ill-formed

MarkupErrorUnknownElement

error should be set by MarkupParser functions; element wasn't known

MarkupErrorUnknownAttribute

error should be set by MarkupParser functions; attribute wasn't known

MarkupErrorInvalidContent

error should be set by MarkupParser functions; content was invalid

MarkupErrorMissingAttribute

error should be set by MarkupParser functions; a required attribute was missing

AnotherMarkupError Int

Catch-all for unknown values

catchMarkupError :: IO a -> (MarkupError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type MarkupError. This is a specialized version of catchGErrorJustDomain.

handleMarkupError :: (MarkupError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type MarkupError. This is a specialized version of handleGErrorJustDomain.

NormalizeMode

data NormalizeMode Source #

Defines how a Unicode string is transformed in a canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character. Unicode strings should generally be normalized before comparing them.

Constructors

NormalizeModeDefault

standardize differences that do not affect the text content, such as the above-mentioned accent representation

NormalizeModeNfd

another name for NormalizeModeDefault

NormalizeModeDefaultCompose

like NormalizeModeDefault, but with composed forms rather than a maximally decomposed form

NormalizeModeNfc

another name for NormalizeModeDefaultCompose

NormalizeModeAll

beyond NormalizeModeDefault also standardize the "compatibility" characters in Unicode, such as SUPERSCRIPT THREE to the standard forms (in this case DIGIT THREE). Formatting information may be lost but for most text operations such characters should be considered the same

NormalizeModeNfkd

another name for NormalizeModeAll

NormalizeModeAllCompose

like NormalizeModeAll, but with composed forms rather than a maximally decomposed form

NormalizeModeNfkc

another name for NormalizeModeAllCompose

AnotherNormalizeMode Int

Catch-all for unknown values

NumberParserError

data NumberParserError Source #

Error codes returned by functions converting a string to a number.

Since: 2.54

Constructors

NumberParserErrorInvalid

String was not a valid number.

NumberParserErrorOutOfBounds

String was a number, but out of bounds.

AnotherNumberParserError Int

Catch-all for unknown values

Instances
Enum NumberParserError Source # 
Instance details

Defined in GI.GLib.Enums

Eq NumberParserError Source # 
Instance details

Defined in GI.GLib.Enums

Ord NumberParserError Source # 
Instance details

Defined in GI.GLib.Enums

Show NumberParserError Source # 
Instance details

Defined in GI.GLib.Enums

GErrorClass NumberParserError Source # 
Instance details

Defined in GI.GLib.Enums

catchNumberParserError :: IO a -> (NumberParserError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type NumberParserError. This is a specialized version of catchGErrorJustDomain.

handleNumberParserError :: (NumberParserError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type NumberParserError. This is a specialized version of handleGErrorJustDomain.

OnceStatus

data OnceStatus Source #

The possible statuses of a one-time initialization function controlled by a Once struct.

Since: 2.4

Constructors

OnceStatusNotcalled

the function has not been called yet.

OnceStatusProgress

the function call is currently in progress.

OnceStatusReady

the function has been called.

AnotherOnceStatus Int

Catch-all for unknown values

OptionArg

data OptionArg Source #

The OptionArg enum values determine which type of extra argument the options expect to find. If an option expects an extra argument, it can be specified in several ways; with a short option: -x arg, with a long option: --name arg or combined in a single argument: --name=arg.

Constructors

OptionArgNone

No extra argument. This is useful for simple flags.

OptionArgString

The option takes a string argument.

OptionArgInt

The option takes an integer argument.

OptionArgCallback

The option provides a callback (of type OptionArgFunc) to parse the extra argument.

OptionArgFilename

The option takes a filename as argument.

OptionArgStringArray

The option takes a string argument, multiple uses of the option are collected into an array of strings.

OptionArgFilenameArray

The option takes a filename as argument, multiple uses of the option are collected into an array of strings.

OptionArgDouble

The option takes a double argument. The argument can be formatted either for the user's locale or for the "C" locale. Since 2.12

OptionArgInt64

The option takes a 64-bit integer. Like OptionArgInt but for larger numbers. The number can be in decimal base, or in hexadecimal (when prefixed with 0x, for example, 0xffffffff). Since 2.12

AnotherOptionArg Int

Catch-all for unknown values

OptionError

data OptionError Source #

Error codes returned by option parsing.

Constructors

OptionErrorUnknownOption

An option was not known to the parser. This error will only be reported, if the parser hasn't been instructed to ignore unknown options, see optionContextSetIgnoreUnknownOptions.

OptionErrorBadValue

A value couldn't be parsed.

OptionErrorFailed

A OptionArgFunc callback failed.

AnotherOptionError Int

Catch-all for unknown values

catchOptionError :: IO a -> (OptionError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type OptionError. This is a specialized version of catchGErrorJustDomain.

handleOptionError :: (OptionError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type OptionError. This is a specialized version of handleGErrorJustDomain.

RegexError

data RegexError Source #

Error codes returned by regular expressions functions.

Since: 2.14

Constructors

RegexErrorCompile

Compilation of the regular expression failed.

RegexErrorOptimize

Optimization of the regular expression failed.

RegexErrorReplace

Replacement failed due to an ill-formed replacement string.

RegexErrorMatch

The match process failed.

RegexErrorInternal

Internal error of the regular expression engine. Since 2.16

RegexErrorStrayBackslash

"\" at end of pattern. Since 2.16

RegexErrorMissingControlChar

"\c" at end of pattern. Since 2.16

RegexErrorUnrecognizedEscape

Unrecognized character follows "\". Since 2.16

RegexErrorQuantifiersOutOfOrder

Numbers out of order in "{}" quantifier. Since 2.16

RegexErrorQuantifierTooBig

Number too big in "{}" quantifier. Since 2.16

RegexErrorUnterminatedCharacterClass

Missing terminating "]" for character class. Since 2.16

RegexErrorInvalidEscapeInCharacterClass

Invalid escape sequence in character class. Since 2.16

RegexErrorRangeOutOfOrder

Range out of order in character class. Since 2.16

RegexErrorNothingToRepeat

Nothing to repeat. Since 2.16

RegexErrorUnrecognizedCharacter

Unrecognized character after "(?", "(?<" or "(?P". Since 2.16

RegexErrorPosixNamedClassOutsideClass

POSIX named classes are supported only within a class. Since 2.16

RegexErrorUnmatchedParenthesis

Missing terminating ")" or ")" without opening "(". Since 2.16

RegexErrorInexistentSubpatternReference

Reference to non-existent subpattern. Since 2.16

RegexErrorUnterminatedComment

Missing terminating ")" after comment. Since 2.16

RegexErrorExpressionTooLarge

Regular expression too large. Since 2.16

RegexErrorMemoryError

Failed to get memory. Since 2.16

RegexErrorVariableLengthLookbehind

Lookbehind assertion is not fixed length. Since 2.16

RegexErrorMalformedCondition

Malformed number or name after "(?(". Since 2.16

RegexErrorTooManyConditionalBranches

Conditional group contains more than two branches. Since 2.16

RegexErrorAssertionExpected

Assertion expected after "(?(". Since 2.16

RegexErrorUnknownPosixClassName

Unknown POSIX class name. Since 2.16

RegexErrorPosixCollatingElementsNotSupported

POSIX collating elements are not supported. Since 2.16

RegexErrorHexCodeTooLarge

Character value in "\x{...}" sequence is too large. Since 2.16

RegexErrorInvalidCondition

Invalid condition "(?(0)". Since 2.16

RegexErrorSingleByteMatchInLookbehind

\C not allowed in lookbehind assertion. Since 2.16

RegexErrorInfiniteLoop

Recursive call could loop indefinitely. Since 2.16

RegexErrorMissingSubpatternNameTerminator

Missing terminator in subpattern name. Since 2.16

RegexErrorDuplicateSubpatternName

Two named subpatterns have the same name. Since 2.16

RegexErrorMalformedProperty

Malformed "\P" or "\p" sequence. Since 2.16

RegexErrorUnknownProperty

Unknown property name after "\P" or "\p". Since 2.16

RegexErrorSubpatternNameTooLong

Subpattern name is too long (maximum 32 characters). Since 2.16

RegexErrorTooManySubpatterns

Too many named subpatterns (maximum 10,000). Since 2.16

RegexErrorInvalidOctalValue

Octal value is greater than "\377". Since 2.16

RegexErrorTooManyBranchesInDefine

"DEFINE" group contains more than one branch. Since 2.16

RegexErrorDefineRepetion

Repeating a "DEFINE" group is not allowed. This error is never raised. Since: 2.16 Deprecated: 2.34

RegexErrorInconsistentNewlineOptions

Inconsistent newline options. Since 2.16

RegexErrorMissingBackReference

"\g" is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number. Since: 2.16

RegexErrorInvalidRelativeReference

relative reference must not be zero. Since: 2.34

RegexErrorBacktrackingControlVerbArgumentForbidden

the backtracing control verb used does not allow an argument. Since: 2.34

RegexErrorUnknownBacktrackingControlVerb

unknown backtracing control verb. Since: 2.34

RegexErrorNumberTooBig

number is too big in escape sequence. Since: 2.34

RegexErrorMissingSubpatternName

Missing subpattern name. Since: 2.34

RegexErrorMissingDigit

Missing digit. Since 2.34

RegexErrorInvalidDataCharacter

In JavaScript compatibility mode, "[" is an invalid data character. Since: 2.34

RegexErrorExtraSubpatternName

different names for subpatterns of the same number are not allowed. Since: 2.34

RegexErrorBacktrackingControlVerbArgumentRequired

the backtracing control verb requires an argument. Since: 2.34

RegexErrorInvalidControlChar

"\c" must be followed by an ASCII character. Since: 2.34

RegexErrorMissingName

"\k" is not followed by a braced, angle-bracketed, or quoted name. Since: 2.34

RegexErrorNotSupportedInClass

"\N" is not supported in a class. Since: 2.34

RegexErrorTooManyForwardReferences

too many forward references. Since: 2.34

RegexErrorNameTooLong

the name is too long in "(*MARK)", "(*PRUNE)", "(*SKIP)", or "(*THEN)". Since: 2.34

RegexErrorCharacterValueTooLarge

the character value in the \u sequence is too large. Since: 2.34

AnotherRegexError Int

Catch-all for unknown values

catchRegexError :: IO a -> (RegexError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type RegexError. This is a specialized version of catchGErrorJustDomain.

handleRegexError :: (RegexError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type RegexError. This is a specialized version of handleGErrorJustDomain.

SeekType

data SeekType Source #

An enumeration specifying the base position for a iOChannelSeekPosition operation.

Constructors

SeekTypeCur

the current position in the file.

SeekTypeSet

the start of the file.

SeekTypeEnd

the end of the file.

AnotherSeekType Int

Catch-all for unknown values

ShellError

data ShellError Source #

Error codes returned by shell functions.

Constructors

ShellErrorBadQuoting

Mismatched or otherwise mangled quoting.

ShellErrorEmptyString

String to be parsed was empty.

ShellErrorFailed

Some other error.

AnotherShellError Int

Catch-all for unknown values

catchShellError :: IO a -> (ShellError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type ShellError. This is a specialized version of catchGErrorJustDomain.

handleShellError :: (ShellError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type ShellError. This is a specialized version of handleGErrorJustDomain.

SliceConfig

data SliceConfig Source #

No description available in the introspection data.

Constructors

SliceConfigAlwaysMalloc

No description available in the introspection data.

SliceConfigBypassMagazines

No description available in the introspection data.

SliceConfigWorkingSetMsecs

No description available in the introspection data.

SliceConfigColorIncrement

No description available in the introspection data.

SliceConfigChunkSizes

No description available in the introspection data.

SliceConfigContentionCounter

No description available in the introspection data.

AnotherSliceConfig Int

Catch-all for unknown values

SpawnError

data SpawnError Source #

Error codes returned by spawning processes.

Constructors

SpawnErrorFork

Fork failed due to lack of memory.

SpawnErrorRead

Read or select on pipes failed.

SpawnErrorChdir

Changing to working directory failed.

SpawnErrorAcces

execv() returned EACCES

SpawnErrorPerm

execv() returned EPERM

SpawnErrorTooBig

execv() returned E2BIG

SpawnError2big

deprecated alias for SpawnErrorTooBig

SpawnErrorNoexec

execv() returned ENOEXEC

SpawnErrorNametoolong

execv() returned ENAMETOOLONG

SpawnErrorNoent

execv() returned ENOENT

SpawnErrorNomem

execv() returned ENOMEM

SpawnErrorNotdir

execv() returned ENOTDIR

SpawnErrorLoop

execv() returned ELOOP

SpawnErrorTxtbusy

execv() returned ETXTBUSY

SpawnErrorIo

execv() returned EIO

SpawnErrorNfile

execv() returned ENFILE

SpawnErrorMfile

execv() returned EMFILE

SpawnErrorInval

execv() returned EINVAL

SpawnErrorIsdir

execv() returned EISDIR

SpawnErrorLibbad

execv() returned ELIBBAD

SpawnErrorFailed

Some other fatal failure, error->message should explain.

AnotherSpawnError Int

Catch-all for unknown values

catchSpawnError :: IO a -> (SpawnError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type SpawnError. This is a specialized version of catchGErrorJustDomain.

handleSpawnError :: (SpawnError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type SpawnError. This is a specialized version of handleGErrorJustDomain.

TestFileType

data TestFileType Source #

The type of file to return the filename for, when used with g_test_build_filename().

These two options correspond rather directly to the 'dist' and 'built' terminology that automake uses and are explicitly used to distinguish between the 'srcdir' and 'builddir' being separate. All files in your project should either be dist (in the EXTRA_DIST or dist_schema_DATA sense, in which case they will always be in the srcdir) or built (in the BUILT_SOURCES sense, in which case they will always be in the builddir).

Note: as a general rule of automake, files that are generated only as part of the build-from-git process (but then are distributed with the tarball) always go in srcdir (even if doing a srcdir != builddir build from git) and are considered as distributed files.

Since: 2.38

Constructors

TestFileTypeDist

a file that was included in the distribution tarball

TestFileTypeBuilt

a file that was built on the compiling machine

AnotherTestFileType Int

Catch-all for unknown values

TestLogType

data TestLogType Source #

No description available in the introspection data.

Constructors

TestLogTypeNone

No description available in the introspection data.

TestLogTypeError

No description available in the introspection data.

TestLogTypeStartBinary

No description available in the introspection data.

TestLogTypeListCase

No description available in the introspection data.

TestLogTypeSkipCase

No description available in the introspection data.

TestLogTypeStartCase

No description available in the introspection data.

TestLogTypeStopCase

No description available in the introspection data.

TestLogTypeMinResult

No description available in the introspection data.

TestLogTypeMaxResult

No description available in the introspection data.

TestLogTypeMessage

No description available in the introspection data.

TestLogTypeStartSuite

No description available in the introspection data.

TestLogTypeStopSuite

No description available in the introspection data.

AnotherTestLogType Int

Catch-all for unknown values

TestResult

data TestResult Source #

No description available in the introspection data.

Constructors

TestResultSuccess

No description available in the introspection data.

TestResultSkipped

No description available in the introspection data.

TestResultFailure

No description available in the introspection data.

TestResultIncomplete

No description available in the introspection data.

AnotherTestResult Int

Catch-all for unknown values

ThreadError

data ThreadError Source #

Possible errors of thread related functions.

Constructors

ThreadErrorThreadErrorAgain

a thread couldn't be created due to resource shortage. Try again later.

AnotherThreadError Int

Catch-all for unknown values

catchThreadError :: IO a -> (ThreadError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type ThreadError. This is a specialized version of catchGErrorJustDomain.

handleThreadError :: (ThreadError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type ThreadError. This is a specialized version of handleGErrorJustDomain.

TimeType

data TimeType Source #

Disambiguates a given time in two ways.

First, specifies if the given time is in universal or local time.

Second, if the time is in local time, specifies if it is local standard time or local daylight time. This is important for the case where the same local time occurs twice (during daylight savings time transitions, for example).

Constructors

TimeTypeStandard

the time is in local standard time

TimeTypeDaylight

the time is in local daylight time

TimeTypeUniversal

the time is in UTC

AnotherTimeType Int

Catch-all for unknown values

TokenType

data TokenType Source #

The possible types of token returned from each scannerGetNextToken call.

Constructors

TokenTypeEof

the end of the file

TokenTypeLeftParen

a '(' character

TokenTypeRightParen

a ')' character

TokenTypeLeftCurly

a '{' character

TokenTypeRightCurly

a '}' character

TokenTypeLeftBrace

a '[' character

TokenTypeRightBrace

a ']' character

TokenTypeEqualSign

a '=' character

TokenTypeComma

a ',' character

TokenTypeNone

not a token

TokenTypeError

an error occurred

TokenTypeChar

a character

TokenTypeBinary

a binary integer

TokenTypeOctal

an octal integer

TokenTypeInt

an integer

TokenTypeHex

a hex integer

TokenTypeFloat

a floating point number

TokenTypeString

a string

TokenTypeSymbol

a symbol

TokenTypeIdentifier

an identifier

TokenTypeIdentifierNull

a null identifier

TokenTypeCommentSingle

one line comment

TokenTypeCommentMulti

multi line comment

AnotherTokenType Int

Catch-all for unknown values

TraverseType

data TraverseType Source #

Specifies the type of traveral performed by g_tree_traverse(), g_node_traverse() and g_node_find(). The different orders are illustrated here:

  • In order: A, B, C, D, E, F, G, H, I
  • Pre order: F, B, A, D, C, E, G, I, H
  • Post order: A, C, E, D, B, H, I, G, F
  • Level order: F, B, G, A, D, I, C, E, H

Constructors

TraverseTypeInOrder

vists a node's left child first, then the node itself, then its right child. This is the one to use if you want the output sorted according to the compare function.

TraverseTypePreOrder

visits a node, then its children.

TraverseTypePostOrder

visits the node's children, then the node itself.

TraverseTypeLevelOrder

is not implemented for [balanced binary trees][glib-Balanced-Binary-Trees]. For [n-ary trees][glib-N-ary-Trees], it vists the root node first, then its children, then its grandchildren, and so on. Note that this is less efficient than the other orders.

AnotherTraverseType Int

Catch-all for unknown values

UnicodeBreakType

data UnicodeBreakType Source #

These are the possible line break classifications.

Since new unicode versions may add new types here, applications should be ready to handle unknown values. They may be regarded as UnicodeBreakTypeUnknown.

See Unicode Line Breaking Algorithm.

Constructors

UnicodeBreakTypeMandatory

Mandatory Break (BK)

UnicodeBreakTypeCarriageReturn

Carriage Return (CR)

UnicodeBreakTypeLineFeed

Line Feed (LF)

UnicodeBreakTypeCombiningMark

Attached Characters and Combining Marks (CM)

UnicodeBreakTypeSurrogate

Surrogates (SG)

UnicodeBreakTypeZeroWidthSpace

Zero Width Space (ZW)

UnicodeBreakTypeInseparable

Inseparable (IN)

UnicodeBreakTypeNonBreakingGlue

Non-breaking ("Glue") (GL)

UnicodeBreakTypeContingent

Contingent Break Opportunity (CB)

UnicodeBreakTypeSpace

Space (SP)

UnicodeBreakTypeAfter

Break Opportunity After (BA)

UnicodeBreakTypeBefore

Break Opportunity Before (BB)

UnicodeBreakTypeBeforeAndAfter

Break Opportunity Before and After (B2)

UnicodeBreakTypeHyphen

Hyphen (HY)

UnicodeBreakTypeNonStarter

Nonstarter (NS)

UnicodeBreakTypeOpenPunctuation

Opening Punctuation (OP)

UnicodeBreakTypeClosePunctuation

Closing Punctuation (CL)

UnicodeBreakTypeQuotation

Ambiguous Quotation (QU)

UnicodeBreakTypeExclamation

Exclamation/Interrogation (EX)

UnicodeBreakTypeIdeographic

Ideographic (ID)

UnicodeBreakTypeNumeric

Numeric (NU)

UnicodeBreakTypeInfixSeparator

Infix Separator (Numeric) (IS)

UnicodeBreakTypeSymbol

Symbols Allowing Break After (SY)

UnicodeBreakTypeAlphabetic

Ordinary Alphabetic and Symbol Characters (AL)

UnicodeBreakTypePrefix

Prefix (Numeric) (PR)

UnicodeBreakTypePostfix

Postfix (Numeric) (PO)

UnicodeBreakTypeComplexContext

Complex Content Dependent (South East Asian) (SA)

UnicodeBreakTypeAmbiguous

Ambiguous (Alphabetic or Ideographic) (AI)

UnicodeBreakTypeUnknown

Unknown (XX)

UnicodeBreakTypeNextLine

Next Line (NL)

UnicodeBreakTypeWordJoiner

Word Joiner (WJ)

UnicodeBreakTypeHangulLJamo

Hangul L Jamo (JL)

UnicodeBreakTypeHangulVJamo

Hangul V Jamo (JV)

UnicodeBreakTypeHangulTJamo

Hangul T Jamo (JT)

UnicodeBreakTypeHangulLvSyllable

Hangul LV Syllable (H2)

UnicodeBreakTypeHangulLvtSyllable

Hangul LVT Syllable (H3)

UnicodeBreakTypeCloseParanthesis

Closing Parenthesis (CP). Since 2.28

UnicodeBreakTypeConditionalJapaneseStarter

Conditional Japanese Starter (CJ). Since: 2.32

UnicodeBreakTypeHebrewLetter

Hebrew Letter (HL). Since: 2.32

UnicodeBreakTypeRegionalIndicator

Regional Indicator (RI). Since: 2.36

UnicodeBreakTypeEmojiBase

Emoji Base (EB). Since: 2.50

UnicodeBreakTypeEmojiModifier

Emoji Modifier (EM). Since: 2.50

UnicodeBreakTypeZeroWidthJoiner

Zero Width Joiner (ZWJ). Since: 2.50

AnotherUnicodeBreakType Int

Catch-all for unknown values

UnicodeScript

data UnicodeScript Source #

The UnicodeScript enumeration identifies different writing systems. The values correspond to the names as defined in the Unicode standard. The enumeration has been added in GLib 2.14, and is interchangeable with PangoScript.

Note that new types may be added in the future. Applications should be ready to handle unknown values. See Unicode Standard Annex #24: Script names.

Constructors

UnicodeScriptInvalidCode

a value never returned from unicharGetScript

UnicodeScriptCommon

a character used by multiple different scripts

UnicodeScriptInherited

a mark glyph that takes its script from the base glyph to which it is attached

UnicodeScriptArabic

Arabic

UnicodeScriptArmenian

Armenian

UnicodeScriptBengali

Bengali

UnicodeScriptBopomofo

Bopomofo

UnicodeScriptCherokee

Cherokee

UnicodeScriptCoptic

Coptic

UnicodeScriptCyrillic

Cyrillic

UnicodeScriptDeseret

Deseret

UnicodeScriptDevanagari

Devanagari

UnicodeScriptEthiopic

Ethiopic

UnicodeScriptGeorgian

Georgian

UnicodeScriptGothic

Gothic

UnicodeScriptGreek

Greek

UnicodeScriptGujarati

Gujarati

UnicodeScriptGurmukhi

Gurmukhi

UnicodeScriptHan

Han

UnicodeScriptHangul

Hangul

UnicodeScriptHebrew

Hebrew

UnicodeScriptHiragana

Hiragana

UnicodeScriptKannada

Kannada

UnicodeScriptKatakana

Katakana

UnicodeScriptKhmer

Khmer

UnicodeScriptLao

Lao

UnicodeScriptLatin

Latin

UnicodeScriptMalayalam

Malayalam

UnicodeScriptMongolian

Mongolian

UnicodeScriptMyanmar

Myanmar

UnicodeScriptOgham

Ogham

UnicodeScriptOldItalic

Old Italic

UnicodeScriptOriya

Oriya

UnicodeScriptRunic

Runic

UnicodeScriptSinhala

Sinhala

UnicodeScriptSyriac

Syriac

UnicodeScriptTamil

Tamil

UnicodeScriptTelugu

Telugu

UnicodeScriptThaana

Thaana

UnicodeScriptThai

Thai

UnicodeScriptTibetan

Tibetan

UnicodeScriptCanadianAboriginal

Canadian Aboriginal

UnicodeScriptYi

Yi

UnicodeScriptTagalog

Tagalog

UnicodeScriptHanunoo

Hanunoo

UnicodeScriptBuhid

Buhid

UnicodeScriptTagbanwa

Tagbanwa

UnicodeScriptBraille

Braille

UnicodeScriptCypriot

Cypriot

UnicodeScriptLimbu

Limbu

UnicodeScriptOsmanya

Osmanya

UnicodeScriptShavian

Shavian

UnicodeScriptLinearB

Linear B

UnicodeScriptTaiLe

Tai Le

UnicodeScriptUgaritic

Ugaritic

UnicodeScriptNewTaiLue

New Tai Lue

UnicodeScriptBuginese

Buginese

UnicodeScriptGlagolitic

Glagolitic

UnicodeScriptTifinagh

Tifinagh

UnicodeScriptSylotiNagri

Syloti Nagri

UnicodeScriptOldPersian

Old Persian

UnicodeScriptKharoshthi

Kharoshthi

UnicodeScriptUnknown

an unassigned code point

UnicodeScriptBalinese

Balinese

UnicodeScriptCuneiform

Cuneiform

UnicodeScriptPhoenician

Phoenician

UnicodeScriptPhagsPa

Phags-pa

UnicodeScriptNko

N'Ko

UnicodeScriptKayahLi

Kayah Li. Since 2.16.3

UnicodeScriptLepcha

Lepcha. Since 2.16.3

UnicodeScriptRejang

Rejang. Since 2.16.3

UnicodeScriptSundanese

Sundanese. Since 2.16.3

UnicodeScriptSaurashtra

Saurashtra. Since 2.16.3

UnicodeScriptCham

Cham. Since 2.16.3

UnicodeScriptOlChiki

Ol Chiki. Since 2.16.3

UnicodeScriptVai

Vai. Since 2.16.3

UnicodeScriptCarian

Carian. Since 2.16.3

UnicodeScriptLycian

Lycian. Since 2.16.3

UnicodeScriptLydian

Lydian. Since 2.16.3

UnicodeScriptAvestan

Avestan. Since 2.26

UnicodeScriptBamum

Bamum. Since 2.26

UnicodeScriptEgyptianHieroglyphs

Egyptian Hieroglpyhs. Since 2.26

UnicodeScriptImperialAramaic

Imperial Aramaic. Since 2.26

UnicodeScriptInscriptionalPahlavi

Inscriptional Pahlavi. Since 2.26

UnicodeScriptInscriptionalParthian

Inscriptional Parthian. Since 2.26

UnicodeScriptJavanese

Javanese. Since 2.26

UnicodeScriptKaithi

Kaithi. Since 2.26

UnicodeScriptLisu

Lisu. Since 2.26

UnicodeScriptMeeteiMayek

Meetei Mayek. Since 2.26

UnicodeScriptOldSouthArabian

Old South Arabian. Since 2.26

UnicodeScriptOldTurkic

Old Turkic. Since 2.28

UnicodeScriptSamaritan

Samaritan. Since 2.26

UnicodeScriptTaiTham

Tai Tham. Since 2.26

UnicodeScriptTaiViet

Tai Viet. Since 2.26

UnicodeScriptBatak

Batak. Since 2.28

UnicodeScriptBrahmi

Brahmi. Since 2.28

UnicodeScriptMandaic

Mandaic. Since 2.28

UnicodeScriptChakma

Chakma. Since: 2.32

UnicodeScriptMeroiticCursive

Meroitic Cursive. Since: 2.32

UnicodeScriptMeroiticHieroglyphs

Meroitic Hieroglyphs. Since: 2.32

UnicodeScriptMiao

Miao. Since: 2.32

UnicodeScriptSharada

Sharada. Since: 2.32

UnicodeScriptSoraSompeng

Sora Sompeng. Since: 2.32

UnicodeScriptTakri

Takri. Since: 2.32

UnicodeScriptBassaVah

Bassa. Since: 2.42

UnicodeScriptCaucasianAlbanian

Caucasian Albanian. Since: 2.42

UnicodeScriptDuployan

Duployan. Since: 2.42

UnicodeScriptElbasan

Elbasan. Since: 2.42

UnicodeScriptGrantha

Grantha. Since: 2.42

UnicodeScriptKhojki

Kjohki. Since: 2.42

UnicodeScriptKhudawadi

Khudawadi, Sindhi. Since: 2.42

UnicodeScriptLinearA

Linear A. Since: 2.42

UnicodeScriptMahajani

Mahajani. Since: 2.42

UnicodeScriptManichaean

Manichaean. Since: 2.42

UnicodeScriptMendeKikakui

Mende Kikakui. Since: 2.42

UnicodeScriptModi

Modi. Since: 2.42

UnicodeScriptMro

Mro. Since: 2.42

UnicodeScriptNabataean

Nabataean. Since: 2.42

UnicodeScriptOldNorthArabian

Old North Arabian. Since: 2.42

UnicodeScriptOldPermic

Old Permic. Since: 2.42

UnicodeScriptPahawhHmong

Pahawh Hmong. Since: 2.42

UnicodeScriptPalmyrene

Palmyrene. Since: 2.42

UnicodeScriptPauCinHau

Pau Cin Hau. Since: 2.42

UnicodeScriptPsalterPahlavi

Psalter Pahlavi. Since: 2.42

UnicodeScriptSiddham

Siddham. Since: 2.42

UnicodeScriptTirhuta

Tirhuta. Since: 2.42

UnicodeScriptWarangCiti

Warang Citi. Since: 2.42

UnicodeScriptAhom

Ahom. Since: 2.48

UnicodeScriptAnatolianHieroglyphs

Anatolian Hieroglyphs. Since: 2.48

UnicodeScriptHatran

Hatran. Since: 2.48

UnicodeScriptMultani

Multani. Since: 2.48

UnicodeScriptOldHungarian

Old Hungarian. Since: 2.48

UnicodeScriptSignwriting

Signwriting. Since: 2.48

UnicodeScriptAdlam

Adlam. Since: 2.50

UnicodeScriptBhaiksuki

Bhaiksuki. Since: 2.50

UnicodeScriptMarchen

Marchen. Since: 2.50

UnicodeScriptNewa

Newa. Since: 2.50

UnicodeScriptOsage

Osage. Since: 2.50

UnicodeScriptTangut

Tangut. Since: 2.50

UnicodeScriptMasaramGondi

Masaram Gondi. Since: 2.54

UnicodeScriptNushu

Nushu. Since: 2.54

UnicodeScriptSoyombo

Soyombo. Since: 2.54

UnicodeScriptZanabazarSquare

Zanabazar Square. Since: 2.54

AnotherUnicodeScript Int

Catch-all for unknown values

UnicodeType

data UnicodeType Source #

These are the possible character classifications from the Unicode specification. See Unicode Character Database.

Constructors

UnicodeTypeControl

General category "Other, Control" (Cc)

UnicodeTypeFormat

General category "Other, Format" (Cf)

UnicodeTypeUnassigned

General category "Other, Not Assigned" (Cn)

UnicodeTypePrivateUse

General category "Other, Private Use" (Co)

UnicodeTypeSurrogate

General category "Other, Surrogate" (Cs)

UnicodeTypeLowercaseLetter

General category "Letter, Lowercase" (Ll)

UnicodeTypeModifierLetter

General category "Letter, Modifier" (Lm)

UnicodeTypeOtherLetter

General category "Letter, Other" (Lo)

UnicodeTypeTitlecaseLetter

General category "Letter, Titlecase" (Lt)

UnicodeTypeUppercaseLetter

General category "Letter, Uppercase" (Lu)

UnicodeTypeSpacingMark

General category "Mark, Spacing" (Mc)

UnicodeTypeEnclosingMark

General category "Mark, Enclosing" (Me)

UnicodeTypeNonSpacingMark

General category "Mark, Nonspacing" (Mn)

UnicodeTypeDecimalNumber

General category "Number, Decimal Digit" (Nd)

UnicodeTypeLetterNumber

General category "Number, Letter" (Nl)

UnicodeTypeOtherNumber

General category "Number, Other" (No)

UnicodeTypeConnectPunctuation

General category "Punctuation, Connector" (Pc)

UnicodeTypeDashPunctuation

General category "Punctuation, Dash" (Pd)

UnicodeTypeClosePunctuation

General category "Punctuation, Close" (Pe)

UnicodeTypeFinalPunctuation

General category "Punctuation, Final quote" (Pf)

UnicodeTypeInitialPunctuation

General category "Punctuation, Initial quote" (Pi)

UnicodeTypeOtherPunctuation

General category "Punctuation, Other" (Po)

UnicodeTypeOpenPunctuation

General category "Punctuation, Open" (Ps)

UnicodeTypeCurrencySymbol

General category "Symbol, Currency" (Sc)

UnicodeTypeModifierSymbol

General category "Symbol, Modifier" (Sk)

UnicodeTypeMathSymbol

General category "Symbol, Math" (Sm)

UnicodeTypeOtherSymbol

General category "Symbol, Other" (So)

UnicodeTypeLineSeparator

General category "Separator, Line" (Zl)

UnicodeTypeParagraphSeparator

General category "Separator, Paragraph" (Zp)

UnicodeTypeSpaceSeparator

General category "Separator, Space" (Zs)

AnotherUnicodeType Int

Catch-all for unknown values

UserDirectory

data UserDirectory Source #

These are logical ids for special directories which are defined depending on the platform used. You should use getUserSpecialDir to retrieve the full path associated to the logical id.

The UserDirectory enumeration can be extended at later date. Not every platform has a directory for every logical id in this enumeration.

Since: 2.14

Constructors

UserDirectoryDirectoryDesktop

the user's Desktop directory

UserDirectoryDirectoryDocuments

the user's Documents directory

UserDirectoryDirectoryDownload

the user's Downloads directory

UserDirectoryDirectoryMusic

the user's Music directory

UserDirectoryDirectoryPictures

the user's Pictures directory

UserDirectoryDirectoryPublicShare

the user's shared directory

UserDirectoryDirectoryTemplates

the user's Templates directory

UserDirectoryDirectoryVideos

the user's Movies directory

UserDirectoryNDirectories

the number of enum values

AnotherUserDirectory Int

Catch-all for unknown values

VariantClass

data VariantClass Source #

The range of possible top-level types of GVariant instances.

Since: 2.24

Constructors

VariantClassBoolean

The GVariant is a boolean.

VariantClassByte

The GVariant is a byte.

VariantClassInt16

The GVariant is a signed 16 bit integer.

VariantClassUint16

The GVariant is an unsigned 16 bit integer.

VariantClassInt32

The GVariant is a signed 32 bit integer.

VariantClassUint32

The GVariant is an unsigned 32 bit integer.

VariantClassInt64

The GVariant is a signed 64 bit integer.

VariantClassUint64

The GVariant is an unsigned 64 bit integer.

VariantClassHandle

The GVariant is a file handle index.

VariantClassDouble

The GVariant is a double precision floating point value.

VariantClassString

The GVariant is a normal string.

VariantClassObjectPath

The GVariant is a D-Bus object path string.

VariantClassSignature

The GVariant is a D-Bus signature string.

VariantClassVariant

The GVariant is a variant.

VariantClassMaybe

The GVariant is a maybe-typed value.

VariantClassArray

The GVariant is an array.

VariantClassTuple

The GVariant is a tuple.

VariantClassDictEntry

The GVariant is a dictionary entry.

AnotherVariantClass Int

Catch-all for unknown values

VariantParseError

data VariantParseError Source #

Error codes returned by parsing text-format GVariants.

Constructors

VariantParseErrorFailed

generic error (unused)

VariantParseErrorBasicTypeExpected

a non-basic VariantType was given where a basic type was expected

VariantParseErrorCannotInferType

cannot infer the VariantType

VariantParseErrorDefiniteTypeExpected

an indefinite VariantType was given where a definite type was expected

VariantParseErrorInputNotAtEnd

extra data after parsing finished

VariantParseErrorInvalidCharacter

invalid character in number or unicode escape

VariantParseErrorInvalidFormatString

not a valid GVariant format string

VariantParseErrorInvalidObjectPath

not a valid object path

VariantParseErrorInvalidSignature

not a valid type signature

VariantParseErrorInvalidTypeString

not a valid GVariant type string

VariantParseErrorNoCommonType

could not find a common type for array entries

VariantParseErrorNumberOutOfRange

the numerical value is out of range of the given type

VariantParseErrorNumberTooBig

the numerical value is out of range for any type

VariantParseErrorTypeError

cannot parse as variant of the specified type

VariantParseErrorUnexpectedToken

an unexpected token was encountered

VariantParseErrorUnknownKeyword

an unknown keyword was encountered

VariantParseErrorUnterminatedStringConstant

unterminated string constant

VariantParseErrorValueExpected

no value given

AnotherVariantParseError Int

Catch-all for unknown values

Instances
Enum VariantParseError Source # 
Instance details

Defined in GI.GLib.Enums

Eq VariantParseError Source # 
Instance details

Defined in GI.GLib.Enums

Ord VariantParseError Source # 
Instance details

Defined in GI.GLib.Enums

Show VariantParseError Source # 
Instance details

Defined in GI.GLib.Enums

GErrorClass VariantParseError Source # 
Instance details

Defined in GI.GLib.Enums

catchVariantParseError :: IO a -> (VariantParseError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type VariantParseError. This is a specialized version of catchGErrorJustDomain.

handleVariantParseError :: (VariantParseError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type VariantParseError. This is a specialized version of handleGErrorJustDomain.