packages feed

toxcore-0.2.0: toxcore.cabal

name:                 toxcore
synopsis:             Haskell bindings to the C reference implementation of Tox
version:              0.2.0
cabal-version:        >= 1.10
license:              GPL-3
license-file:         LICENSE.md
build-type:           Simple
author:               iphy
maintainer:           iphy
copyright:            © 2016-2018 iphy
homepage:             https://toktok.github.io
category:             Network
description:
  Haskell bindings to the C reference implementation of Tox.
  .
  See <https://github.com/TokTok/toxcore>.

source-repository head
  type: git
  location: https://github.com/TokTok/hs-toxcore

library
  default-language: Haskell2010
  hs-source-dirs:
      src
  ghc-options:
      -Wall
      -- -fno-warn-unused-imports
  extra-libraries: toxcore
  build-depends:
      base < 5
    , bytestring
    , data-default-class
  exposed-modules:
      Network.Tox.C
      Network.Tox.C.CEnum
      Network.Tox.C.Callbacks
      Network.Tox.C.Constants
      Network.Tox.C.Options
      Network.Tox.C.Tox
      Network.Tox.C.Type
      Network.Tox.C.Version

executable groupbot
  default-language: Haskell2010
  hs-source-dirs:
      tools/groupbot
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  extra-libraries: toxcore
  build-depends:
      base < 5
    , base16-bytestring
    , bytestring
    , directory
    , toxcore
  main-is: Main.hs

test-suite testsuite
  default-language: Haskell2010
  type: exitcode-stdio-1.0
  hs-source-dirs:
      test
  ghc-options:
      -Wall
      -fno-warn-unused-imports
  build-depends:
      base < 5
    , QuickCheck >= 2.9.1
    , base16-bytestring
    , bytestring
    , bytestring-arbitrary
    , data-default-class
    , hspec
    , saltine
    , toxcore
  main-is: testsuite.hs
  other-modules:
      Network.Tox.C.ToxSpec
      Network.Tox.CSpec