packages feed

tdigest-0.1: tdigest.cabal

name:           tdigest
version:        0.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/master/docs/t-digest-paper/histo.pdf>.
category:       Numeric
homepage:       https://github.com/futurice/haskell-tdigest#readme
bug-reports:    https://github.com/futurice/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, GHC==7.10.3, GHC==8.0.1, GHC==8.0.2
build-type:     Custom
cabal-version:  >= 1.10

extra-source-files:
    README.md
    CHANGELOG.md

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

custom-setup
  setup-depends:
    base          >=4.5 && <5,
    Cabal         >=1.14,
    cabal-doctest >=1 && <1.1

library
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      base                >=4.7      && <4.10
    , base-compat         >=0.9.1    && <0.10
    , deepseq             >=1.3.0.2  && <1.5
    , binary              >=0.7.1.0  && <0.9
    , reducers            >=3.12.1   && <3.13
    , semigroups          >=0.18.2   && <0.19
    , semigroupoids       >=5.1      && <5.2
    , vector              >=0.11     && <0.13
    , vector-algorithms   >=0.7.0.1  && <0.8
  exposed-modules:
      Data.TDigest
      Data.TDigest.NonEmpty
      Data.TDigest.Postprocess
      Data.TDigest.Internal
  default-language: Haskell2010
  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,
    tdigest,
    base-compat,
    deepseq,
    binary,
    semigroups,
    vector,
    vector-algorithms,
    tasty            >=0.11.0.4 && <0.12,
    tasty-quickcheck >=0.8.4    && <0.9

test-suite doctests
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  main-is:          doctests.hs
  ghc-options:      -Wall -threaded
  hs-source-dirs:   tests

  build-depends:
    base,
    doctest        >=0.11.1 && <0.12