packages feed

d-bus-0.1.4: d-bus.cabal

name:                d-bus
version:             0.1.4
synopsis:            Permissively licensed D-Bus client library
description:         This library uses modern extensions to the Haskell type system
                     (including GADTs, DataKinds and TypeFamilies) and the
                     singletons library to embedd the D-Bus type system. D-Bus
                     signatures can thus be inferred.
license:             BSD3
license-file:        LICENSE
author:              Philipp Balzarek
maintainer:          p.balzarek@googlemail.com
copyright:           2013 Philipp Balzarek
category:            Network, Desktop
build-type:          Simple
cabal-version:       >=1.10

source-repository head
  type:            git
  location:        git@github.com:Philonous/d-bus.git

library
  hs-source-dirs:    src/
  exposed-modules:   DBus
                   , DBus.Auth
                   , DBus.Error
                   , DBus.Introspect
                   , DBus.MainLoop
                   , DBus.Message
                   , DBus.MessageBus
                   , DBus.Object
                   , DBus.Representable
                   , DBus.Method
                   , DBus.Property
                   , DBus.Signal
                   , DBus.Signature
                   , DBus.TH
                   , DBus.Transport
                   , DBus.Types
                   , DBus.Wire
                   , DBus.Scaffold
  build-depends:     async >= 2.0
                   , attoparsec >= 0.12
                   , base >= 4 && <5
                   , binary >= 0.7
                   , blaze-builder >= 0.3
                   , bytestring >= 0.10
                   , conduit >= 1.1
                   , conduit-extra >= 1.1
                   , containers >= 0.5
                   , data-binary-ieee754 >= 0.4
                   , data-default >= 0.5
                   , exceptions >= 0.6
                   , free >= 4.2
                   , hslogger >= 1.2
                   , mtl >= 2.2.1
                   , network >= 2.4
                   , singletons >= 1.0
                   , stm >= 2.4
                   , template-haskell >= 2.8
                   , text >= 1.1
                   , transformers >= 0.4
                   , xml-conduit >= 1.1
                   , xml-picklers >= 0.3
                   , xml-types >= 0.3
  if os(freebsd) {
  c-sources:       src/cbits/credentials.c
  cpp-options:     -DSEND_CREDENTIALS
  }
  default-language:   Haskell2010
  default-extensions: DataKinds
                    , DeriveDataTypeable
                    , FlexibleContexts
                    , GADTs
                    , KindSignatures
                    , OverloadedStrings
                    , PolyKinds
                    , ScopedTypeVariables
                    , TypeFamilies

executable dbus-introspect
  hs-source-dirs:    dbus-introspect
  main-is:           Main.hs
  build-depends:     base
                   , d-bus
                   , text
  default-language:  Haskell2010

executable liferea-example
  hs-source-dirs:    liferea-example
  main-is:           Main.hs
  build-depends:     base
                   , d-bus
                   , text
  default-language:  Haskell2010

test-suite unittests
  type:              exitcode-stdio-1.0
  hs-source-dirs:    tests
  main-is:           Main.hs
  build-depends:     QuickCheck
                   , base >= 4 && < 5
                   , binary
                   , bytestring
                   , d-bus
                   , mtl
                   , singletons
                   , tasty
                   , tasty-hunit
                   , tasty-quickcheck
                   , tasty-th
                   , text
                   , xml-hamlet
  default-language:   Haskell2010



-- test-suite integrationtest
--   type:              exitcode-stdio-1.0
--   hs-source-dirs:    tests
--   main-is:           Runtest.hs
--   build-depends:     base >= 4 && < 5
--                    , d-bus
--                    , text


-- test-suite singletons
--   type:              exitcode-stdio-1.0
--   hs-source-dirs:    src
--   main-is:           Test.hs
--   build-depends:     base >= 4 && < 5
--                    , singletons