File tdigest.cabal of Package ghc-tdigest

cabal-version:      >=1.10
name:               tdigest
version:            0.3
x-revision:         1
synopsis:           On-line accumulation of rank-based statistics
description:
  A new data structure for accurate on-line accumulation of rank-based statistics such as quantiles and trimmed means.
  .
  See original paper: "Computing extremely accurate quantiles using t-digest" by Ted Dunning and Otmar Ertl
  for more details <https://github.com/tdunning/t-digest/blob/07b8f2ca2be8d0a9f04df2feadad5ddc1bb73c88/docs/t-digest-paper/histo.pdf>.

category:           Numeric
homepage:           https://github.com/phadej/haskell-tdigest#readme
bug-reports:        https://github.com/phadej/haskell-tdigest/issues
author:             Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
license:            BSD3
license-file:       LICENSE
tested-with:
  GHC ==7.8.4
   || ==7.10.3
   || ==8.0.2
   || ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.8
   || ==9.4.8
   || ==9.6.3
   || ==9.8.1

build-type:         Simple
extra-source-files:
  README.md
  CHANGELOG.md

source-repository head
  type:     git
  location: https://github.com/phadej/haskell-tdigest
  subdir:   tdigest

library
  default-language: Haskell2010
  hs-source-dirs:   src
  ghc-options:      -Wall

  -- GHC boot libraries
  build-depends:
      base          >=4.7     && <4.21
    , binary        >=0.7.1.0 && <0.10
    , deepseq       >=1.3.0.2 && <1.6
    , transformers  >=0.3     && <0.7

  if !impl(ghc >=8.0)
    build-depends: semigroups >=0.18.4 && <0.21

  if !impl(ghc >=9.6)
    build-depends: foldable1-classes-compat >=0.1 && <0.2

  -- other dependencies
  build-depends:
      base-compat        >=0.10.1   && <0.14
    , reducers           >=3.12.2   && <3.13
    , vector             >=0.12.0.1 && <0.14
    , vector-algorithms  >=0.7.0.1  && <0.10

  exposed-modules:
    Data.TDigest
    Data.TDigest.NonEmpty
    Data.TDigest.Postprocess
    Data.TDigest.Tree
    Data.TDigest.Tree.NonEmpty
    Data.TDigest.Tree.Postprocess
    Data.TDigest.Vector
    Data.TDigest.Vector.NonEmpty
    Data.TDigest.Vector.Postprocess

  -- Internal modules are exposed, but aren't under PVP contract.
  exposed-modules:
    Data.TDigest.Internal
    Data.TDigest.Postprocess.Internal
    Data.TDigest.Tree.Internal
    Data.TDigest.Vector.Internal

  other-extensions:
    DataKinds
    KindSignatures
    MultiParamTypeClasses
    ScopedTypeVariables

test-suite tdigest-tests
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  main-is:          Tests.hs
  ghc-options:      -Wall -threaded
  hs-source-dirs:   tests
  build-depends:
      base
    , base-compat
    , binary
    , deepseq
    , semigroups
    , tasty              >=0.11.0.4 && <1.5
    , tasty-quickcheck   >=0.8.4    && <0.11
    , tdigest
    , vector
    , vector-algorithms
openSUSE Build Service is sponsored by