packages feed

protobuf-native-1.0.0.1: protobuf-native.cabal

name:                protobuf-native
version:             1.0.0.1
synopsis:            Protocol Buffers via C++
description:         
  <<http://i.imgur.com/Ns5hntl.jpg>>
  .
  protobuf-native uses the code generated from protobuf for C++
  in Haskell.
homepage:            https://github.com/nicta/protobuf-native
license:             BSD3
license-file:        LICENSE
author:              Maxwell Swadling
maintainer:          maxwell.swadling@nicta.com.au
copyright:           Copyright (c) 2014, National ICT Australia Limited (NICTA)
category:            Data
build-type:          Custom
extra-source-files:  README.md, tests/person.pb.h
cabal-version:       >=1.10

library
  exposed-modules:     Data.Protobuf
  other-extensions:    TemplateHaskell, MultiParamTypeClasses, FunctionalDependencies, UnicodeSyntax, KindSignatures, OverlappingInstances, FlexibleInstances, ScopedTypeVariables, FlexibleContexts, EmptyDataDecls
  build-depends:       base >=4.6 && <4.8, bytestring >=0.10 && <0.11, text >= 1 && <= 2, template-haskell, cplusplus-th == 1.*
  hs-source-dirs:      src
  extra-libraries:     protobuf, c++
  c-sources:           cbits/hsprotobuf.cc
  ghc-options:         -Wall
  default-language:    Haskell2010

executable protobuf-native-test
  -- Remember to check out the Setup.hs for the build hook
  main-is:             Main.hs
  other-modules:       Person
  build-depends:       protobuf-native, base, bytestring
  c-sources:           tests/person.pb.cc
  hs-source-dirs:      tests
  default-language:    Haskell2010

test-suite quickcheck
  type:                exitcode-stdio-1.0
  main-is:             Tests.hs
  other-modules:       Person
  c-sources:           tests/person.pb.cc
  hs-source-dirs:      tests
  build-depends:       protobuf-native, base, bytestring, QuickCheck == 2.7.6
  default-language:    Haskell2010

test-suite benchmark
  type:                exitcode-stdio-1.0
  main-is:             Benchmark.hs
  hs-source-dirs:      benchmark, tests
  other-modules:       DataProtobuf, TextProtocolBuffers, DataProtocolBuffers, Person, TestsPerson.Name, TestsPerson.Person
  c-sources:           tests/person.pb.cc
  build-depends:       protobuf-native, base, bytestring, text, QuickCheck == 2.7.6, criterion == 1.0.2.0, protobuf == 0.2.0.4, cereal == 0.4.1.0, cplusplus-th, protocol-buffers-fork == 2.0.16, hprotoc-fork == 2.0.16.1, utf8-string == 0.3.8
  default-language:    Haskell2010