/var/lib/ghc/package.conf.d/dbus-0.10.13.conf is in libghc-dbus-dev 0.10.13-1build3.
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 | name: dbus
version: 0.10.13
id: dbus-0.10.13-LhD2qUhjt6531t3TKq31Bu
key: dbus-0.10.13-LhD2qUhjt6531t3TKq31Bu
license: GPL-3
maintainer: Andrey Sverdlichenko <blaze@ruddy.ru>, John Millikin <john@john-millikin.com>
stability: experimental
homepage: https://github.com/rblaze/haskell-dbus#readme
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 <john@john-millikin.com>
exposed: True
exposed-modules:
DBus DBus.Client DBus.Introspection DBus.Socket DBus.Transport
DBus.Internal.Address DBus.Internal.Message DBus.Internal.Types
DBus.Internal.Wire
abi: a8ce5b3d744dc2d8915535ed65cd194e
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/dbus-0.10.13-LhD2qUhjt6531t3TKq31Bu
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/dbus-0.10.13-LhD2qUhjt6531t3TKq31Bu
dynamic-library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2
data-dir: /usr/share/dbus
hs-libraries: HSdbus-0.10.13-LhD2qUhjt6531t3TKq31Bu
depends:
base-4.9.1.0 bytestring-0.10.8.1
cereal-0.5.4.0-BsAGxfp8yAs3CiRo2E875e containers-0.5.7.1
libxml-sax-0.7.5-9OnEj4QUGf15WUDWBg0t9D
network-2.6.3.2-IsLM4TXcLoRI0fmmBYVyQz
parsec-3.1.11-1aqiimsgq2dCv7eoaC8WuX
random-1.1-9tceXaeYIMZ4JrKq20Egog
text-1.2.2.2-9UQZjEJZQFSGMffj1Z5g00 transformers-0.5.2.0
unix-2.7.2.1 vector-0.12.0.1-692PQMDMB6pIQ1uGwefDcQ
xml-types-0.3.6-BlXpqWNn2ZGFM9gCBPuBeT
haddock-interfaces: /usr/lib/ghc-doc/haddock/dbus-0.10.13/dbus.haddock
haddock-html: /usr/share/doc/libghc-dbus-doc/html/
|