/var/lib/ghc/package.conf.d/dbus-0.10.4.conf is in libghc-dbus-dev 0.10.4-2build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | name: dbus
version: 0.10.4
id: dbus-0.10.4-b8b2d1e4e0c305dcdd9012e88892b11e
license: GPL-3
copyright:
maintainer: John Millikin <jmillikin@gmail.com>
stability: experimental
homepage: https://john-millikin.com/software/haskell-dbus/
package-url:
synopsis: A client library for the D-Bus IPC system.
description: D-Bus is a simple, message-based protocol for inter-process
communication, which allows applications to interact with other parts of
the machine and the user's session using remote procedure calls.
.
D-Bus is a essential part of the modern Linux desktop, where it replaces
earlier protocols such as CORBA and DCOP.
.
This library is an implementation of the D-Bus protocol in Haskell. It
can be used to add D-Bus support to Haskell applications, without the
awkward interfaces common to foreign bindings.
.
Example: connect to the session bus, and get a list of active names.
.
@
{-\# LANGUAGE OverloadedStrings \#-}
.
import Data.List (sort)
import DBus
import DBus.Client
.
main = do
  client <- connectSession
  //
  \-- Request a list of connected clients from the bus
  reply <- call_ client (methodCall \"\/org\/freedesktop\/DBus\" \"org.freedesktop.DBus\" \"ListNames\")
  { methodCallDestination = Just \"org.freedesktop.DBus\"
  }
  //
  \-- org.freedesktop.DBus.ListNames() returns a single value, which is
  \-- a list of names (here represented as [String])
  let Just names = fromVariant (methodReturnBody reply !! 0)
  //
  \-- Print each name on a line, sorted so reserved names are below
  \-- temporary names.
  mapM_ putStrLn (sort names)
@
.
>$ ghc --make list-names.hs
>$ ./list-names
>:1.0
>:1.1
>:1.10
>:1.106
>:1.109
>:1.110
>ca.desrt.dconf
>org.freedesktop.DBus
>org.freedesktop.Notifications
>org.freedesktop.secrets
>org.gnome.ScreenSaver
category: Network, Desktop
author: John Millikin <jmillikin@gmail.com>
exposed: True
exposed-modules: DBus DBus.Client DBus.Introspection DBus.Socket
DBus.Transport
hidden-modules: DBus.Address DBus.Message DBus.Types DBus.Wire
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/dbus-0.10.4/ghc-7.6.3
library-dirs: /usr/lib/haskell-packages/ghc/lib/dbus-0.10.4/ghc-7.6.3
hs-libraries: HSdbus-0.10.4
extra-libraries:
extra-ghci-libraries:
include-dirs:
includes:
depends: base-4.6.0.1-8aa5d403c45ea59dcd2c39f123e27d57
bytestring-0.10.0.2-4f93248f75667c2c3321a7a6761b576f
cereal-0.3.5.2-a9ff0516a3b8fef3d6dca329fe564618
containers-0.5.0.0-ab1dae9a94cd3cc84e7b2805636ebfa2
libxml-sax-0.7.3-2d230ba891a6aff32015563891faa3f6
network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4
parsec-3.1.3-6c6e21cb4ed4ef9d58fdf442940b152e
random-1.0.1.1-43fdc5da991685d8a0ec8cb553880cf8
text-0.11.3.1-e38859e86485c167fa7c9441789e7607
transformers-0.3.0.0-ff2bb6ac67241ebb987351a3db564af0
unix-2.6.0.1-f12544f106e651e2866b480a05caac7c
vector-0.10.0.1-1fbb548bc492f07fef7e604d2e6f581d
xml-types-0.3.4-b39fd38cbbdcc8921c8e2439b41c614c
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces: /usr/lib/ghc-doc/haddock/dbus-0.10.4/dbus.haddock
haddock-html: /usr/share/doc/libghc-dbus-doc/html/
|