packages feed

arbor-monad-metric-1.2.1: arbor-monad-metric.cabal

cabal-version:  2.2

name:                   arbor-monad-metric
version:                1.2.1
description:            Please see the README on Github at <https://github.com/arbor/arbor-monad-metric#readme>
synopsis:               Core metric library for publishing metrics.
category:               Metrics
homepage:               https://github.com/arbor/arbor-monad-metric#readme
bug-reports:            https://github.com/arbor/arbor-monad-metric/issues
author:                 Arbor Networks
maintainer:             mayhem@arbor.net
copyright:              Arbor Networks
license:                MIT
license-file:           LICENSE
tested-with:            GHC == 8.8.1, GHC == 8.6.5, GHC == 8.4.4, GHC == 8.2.2
build-type:             Simple
extra-source-files:     ChangeLog.md
                        README.md

source-repository head
  type: git
  location: https://github.com/arbor/arbor-monad-metric

common base                 { build-depends: base                 >= 4          && < 5      }

common arbor-datadog        { build-depends: arbor-datadog        >= 0.0.0.1    && < 0.2    }
common bytestring           { build-depends: bytestring           >= 0.10.8.2   && < 0.11   }
common containers           { build-depends: containers           >= 0.5.10     && < 0.7    }
common generic-lens         { build-depends: generic-lens         >= 1.2.0.1    && < 1.3    }
common hedgehog             { build-depends: hedgehog             >= 0.7        && < 1.1    }
common hspec                { build-depends: hspec                >= 2.6        && < 3      }
common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog    >= 0.1.0.5    && < 0.2    }
common lens                 { build-depends: lens                 >= 4.16       && < 5      }
common mtl                  { build-depends: mtl                  >= 2.2.2      && < 2.3    }
common network              { build-depends: network              >= 2          && < 3      }
common resourcet            { build-depends: resourcet            >= 1.2.1      && < 1.3    }
common stm                  { build-depends: stm                  >= 2.4.0      && < 2.6    }
common text                 { build-depends: text                 >= 1.2.3      && < 1.3    }
common transformers         { build-depends: transformers         >= 0.5.2      && < 0.6    }

common config
  default-language: Haskell2010

library
  import:               base, config
                      , containers
                      , generic-lens
                      , lens
                      , mtl
                      , resourcet
                      , stm
                      , text
                      , transformers
  exposed-modules:      Arbor.Monad.Metric
                        Arbor.Monad.Metric.Api.String
                        Arbor.Monad.Metric.Api.Text
                        Arbor.Monad.Metric.Generic
                        Arbor.Monad.Metric.Type
  other-modules:        Paths_arbor_monad_metric
  autogen-modules:      Paths_arbor_monad_metric
  hs-source-dirs:       src
  default-extensions:   BangPatterns FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TupleSections
  ghc-options:          -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints

test-suite arbor-monad-metric-test
  import:               base, config
                      , arbor-datadog
                      , base
                      , bytestring
                      , containers
                      , generic-lens
                      , hedgehog
                      , hspec
                      , hw-hspec-hedgehog
                      , lens
                      , mtl
                      , network
                      , resourcet
                      , stm
                      , text
                      , transformers
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  other-modules:        Arbor.Monad.Metric
                        Arbor.Monad.Metric.Api.String
                        Arbor.Monad.Metric.Api.Text
                        Arbor.Monad.Metric.Generic
                        Arbor.Monad.Metric.Type
                        Arbor.Monad.MetricApp
                        Arbor.Monad.MetricSpec
                        Paths_arbor_monad_metric
  hs-source-dirs:       test
                        src
  default-extensions:   BangPatterns FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TupleSections
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  build-depends:        arbor-monad-metric
  build-tool-depends:   hspec-discover:hspec-discover