packages feed

ridley-0.3.0.0: ridley.cabal

name:                ridley
version:             0.3.0.0
synopsis:            Quick metrics to grow you app strong.
description:         Please see README.md
homepage:            https://github.com/iconnect/ridley#readme
license:             BSD3
license-file:        LICENSE
author:              Alfredo Di Napoli & the IRIS Connect Engineering Team
maintainer:          alfredo@irisconnect.co.uk
copyright:           2017 IRIS Connect Ltd.
category:            Web
build-type:          Simple
data-files:
  include/helpers.h
cabal-version:       >=1.10

flag lib-Werror
     default: False
     description: Enable -Werror

library
  hs-source-dirs:      src
  include-dirs:        include
  exposed-modules:     System.Metrics.Prometheus.Ridley
                       System.Metrics.Prometheus.Ridley.Types
                       System.Metrics.Prometheus.Ridley.Metrics.Memory
                       System.Metrics.Prometheus.Ridley.Metrics.DiskUsage
                       System.Metrics.Prometheus.Ridley.Metrics.CPU
                       System.Metrics.Prometheus.Ridley.Metrics.Network
                       System.Metrics.Prometheus.Ridley.Metrics.Network.Types

  build-depends:       async < 3.0.0,
                       base >= 4.7 && < 5,
                       containers < 0.6.0.0,
                       katip < 0.4.0.0,
                       wai-middleware-metrics < 0.3.0.0,
                       template-haskell,
                       ekg-core,
                       time,
                       text,
                       mtl,
                       shelly,
                       transformers,
                       prometheus,
                       raw-strings-qq,
                       microlens,
                       microlens-th,
                       process,
                       ekg-prometheus-adapter >= 0.1.0.3,
                       inline-c,
                       vector,
                       unix
  c-sources:           cbits/helpers.c
  cc-options:          -Wall -std=c99
  default-language:    Haskell2010
  ghc-options:         -Wall
  if flag(lib-Werror)
    ghc-options: -Wall
  if os(darwin)
    c-sources:         src/System/Metrics/Prometheus/Ridley/Metrics/Network/Darwin.c
                       src/System/Metrics/Prometheus/Ridley/Metrics/CPU/Darwin.c
    other-modules:     System.Metrics.Prometheus.Ridley.Metrics.Network.Darwin
                       System.Metrics.Prometheus.Ridley.Metrics.CPU.Darwin
  else
    other-modules:     System.Metrics.Prometheus.Ridley.Metrics.Network.Unix
                       System.Metrics.Prometheus.Ridley.Metrics.CPU.Unix

test-suite ridley-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , bytestring
                     , ridley
                     , tasty
                     , tasty-hunit
                     , tasty-quickcheck
                     , ekg-core
                     , prometheus
                     , containers
                     , microlens
                     , ekg-prometheus-adapter
                     , text
                     , string-conv
                     , http-client >= 0.4.30
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/iconnect/haskell-oss/ridley