packages feed

instrument-0.6.0.0: instrument.cabal

name:                instrument
version:             0.6.0.0
synopsis:            Easy stats/metrics instrumentation for Haskell programs
license:             BSD3
license-file:        LICENSE
author:              Ozgun Ataman
maintainer:          ozgun.ataman@soostone.com
copyright:           Soostone Inc
category:            Data
build-type:          Simple
cabal-version:       >=1.10


flag lib-Werror
  default: False
  manual: True

library
  default-language: Haskell2010
  hs-source-dirs: src
  exposed-modules:
    Instrument
    Instrument.Client
    Instrument.ClientClass
    Instrument.Counter
    Instrument.Measurement
    Instrument.Sampler
    Instrument.Types
    Instrument.Utils
    Instrument.Worker

  if flag(lib-Werror)
    ghc-options: -Werror

  ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates

  build-depends:
      base >= 4.5 && < 5
    , array
    , time
    , transformers
    , mtl
    , hostname
    , hedis >= 0.10.0
    , text
    , bytestring
    , statistics
    , vector
    , containers
    , cereal
    , cereal-text
    , data-default
    , csv-conduit
    , conduit >= 1.2.8
    , unix
    , errors
    , network
    , zlib          >= 0.6
    , retry         >= 0.7
    , exceptions
    , safe-exceptions
    , safecopy

test-suite test
  default-language: Haskell2010
  type: exitcode-stdio-1.0
  main-is: Main.hs
  if flag(lib-Werror)
    ghc-options: -Werror
  ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -threaded -rtsopts -O0
  hs-source-dirs:
    test/src
  other-modules:
    Instrument.Tests.Client
    Instrument.Tests.Types
    Instrument.Tests.Utils
    Instrument.Tests.Arbitrary
    Instrument.Tests.Worker
  build-depends:
     base
   , data-default
   , hedis
   , HUnit
   , instrument
   , safecopy-hunit
   , tasty
   , tasty-quickcheck
   , tasty-hunit
   , transformers
   , QuickCheck
   , path >= 0.6.0
   , path-io
   , containers
   , cereal
   , bytestring
   , safecopy
   , quickcheck-instances
   , stm
   , async
    , safe-exceptions