packages feed

d-bus-0.1.2: d-bus.cabal

name:                d-bus
version:             0.1.2
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.8

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.Signature
                   , DBus.Signal
                   , DBus.TH
                   , DBus.Transport
                   , DBus.Types
                   , DBus.Wire
  build-depends:     base >= 4 && <5
                   , async >= 2.0
                   , attoparsec >= 0.12
                   , 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
                   , free >= 4.2
                   , mtl >= 2.1
                   , network >= 2.4
                   , singletons >= 1.0
                   , stm >= 2.4
                   , template-haskell >= 2.8
                   , text >= 1.1
                   , transformers >= 0.3
                   , xml-conduit >= 1.1
                   , xml-picklers >= 0.3
                   , xml-types >= 0.3
                   , hslogger >= 1.2
                   , exceptions >= 0.6
  if os(freebsd) {
  c-sources:       src/cbits/credentials.c
  cpp-options:     -DSEND_CREDENTIALS
  }

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

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