HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduledbus-1.4.1Haskell2010

DBus.Internal.Types

  • 15 types
  • 3 classes
  • 54 values
  • Packagedbus-1.4.1
  • Exports72
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceTypes.hs
datadata Type
#
Instances6Eq, Ord, Show, Generic, NFData, Rep
newtypenewtype Signature
#

A signature is a list of D-Bus types, obeying some basic rules of validity.

The rules of signature validity are complex: see http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-signatures for details.

Constructors

Instances8Eq, Ord, Show, IsString, NFData, IsAtom, …
valuesignature_ :: [Type] -> Signature
#

Convert a list of types into a valid signature.

Throws an exception if the given types are not a valid signature.

classclass IsVariant a where
#

Methods

Instances44IsVariant, …
classclass IsVariant a => IsValue a where
#

Value types can be used as items in containers, such as lists or dictionaries.

Users may not provide new instances of IsValue because this could allow containers to be created with items of heterogenous types.

Methods

Instances36IsValue, …
classclass IsValue a => IsAtom a where
#

Atomic types can be used as keys to dictionaries.

Users may not provide new instances of IsAtom because this could allow dictionaries to be created with invalid keys.

Methods

Instances15IsAtom, …
newtypenewtype Variant
#

Variants may contain any other built-in D-Bus value. Besides representing native VARIANT values, they allow type-safe storage and inspection of D-Bus collections.

Constructors

Instances4Eq, Show, IsValue, IsVariant
valuevariantType :: Variant -> Type
#

Every variant is strongly-typed; that is, the type of its contained value is known at all times. This function retrieves that type, so that the correct cast can be used to retrieve the value.

newtypenewtype ObjectPath
#

Object paths are special strings, used to identify a particular object exported from a D-Bus application.

Object paths must begin with a slash, and consist of alphanumeric characters separated by slashes.

See http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-marshaling-object-path for details.

Constructors

Instances9Eq, Ord, Show, IsString, NFData, IsAtom, …
newtypenewtype InterfaceName
#

Interfaces are used to group a set of methods and signals within an exported object. Interface names consist of alphanumeric characters separated by periods.

See http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-interface for details.

Constructors

Instances7Eq, Ord, Show, IsString, NFData, IsVariant, …
newtypenewtype MemberName
#

Member names are used to identify a single method or signal within an interface. Method names consist of alphanumeric characters.

See http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-member for details.

Constructors

Instances7Eq, Ord, Show, IsString, NFData, IsVariant, …
newtypenewtype ErrorName
#

Error names are used to identify which type of error was returned from a method call. Error names consist of alphanumeric characters separated by periods.

See http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-error for details.

Constructors

Instances6Eq, Ord, Show, IsString, NFData, IsVariant
newtypenewtype BusName
#

Bus names are used to identify particular clients on the message bus. A bus name may be either unique or well-known, where unique names start with a colon. Bus names consist of alphanumeric characters separated by periods.

See http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus for details.

Constructors

Instances7Eq, Ord, Show, IsString, NFData, IsVariant, …
newtypenewtype Structure
#

A D-Bus Structure is a container type similar to Haskell tuples, storing values of any type that is convertable to IsVariant. A Structure may contain up to 255 values.

Most users can use the IsVariant instance for tuples to extract the values of a structure. This type is for very large structures, which may be awkward to work with as tuples.

Constructors

Instances3Eq, Show, IsVariant
datadata Array
#

A D-Bus Array is a container type similar to Haskell lists, storing zero or more values of a single D-Bus type.

Most users can use the IsVariant instance for lists or vectors to extract the values of an array. This type is for advanced use cases, where the user wants to convert array values to Haskell types that are not instances of IsValue.

Instances3Eq, Show, IsVariant
  • Eq ArrayDefined in dbus-1.4.1 · DBus.Internal.Types
  • Show ArrayDefined in dbus-1.4.1 · DBus.Internal.Types
  • IsVariant ArrayDefined in dbus-1.4.1 · DBus.Internal.Types
datadata Dictionary
#

A D-Bus Dictionary is a container type similar to Haskell maps, storing zero or more associations between keys and values.

Most users can use the IsVariant instance for maps to extract the values of a dictionary. This type is for advanced use cases, where the user wants to convert dictionary items to Haskell types that are not instances of IsValue.

Instances3Eq, Show, IsVariant
newtypenewtype Serial
#

A value used to uniquely identify a particular message within a session. Serials are 32-bit unsigned integers, and eventually wrap.

Constructors

Instances4Eq, Ord, Show, IsVariant
  • Eq SerialDefined in dbus-1.4.1 · DBus.Internal.Types
  • Ord SerialDefined in dbus-1.4.1 · DBus.Internal.Types
  • Show SerialDefined in dbus-1.4.1 · DBus.Internal.Types
  • IsVariant SerialDefined in dbus-1.4.1 · DBus.Internal.Types