packages feed

foldl-statistics-0.1.5.0: foldl-statistics.cabal

name:                foldl-statistics
version:             0.1.5.0
synopsis:            Statistical functions from the statistics package implemented as
                     Folds.
description:         The use of this package allows statistics to be computed using at most two
                     passes over the input data, one to compute a mean and one to compute a further
                     statistic such as variance and /n/th central moments. All algorithms are the
                     obvious implementation of Bryan O\'Sullivan\'s
                     <https://hackage.haskell.org/package/statistics statistics> package imeplemented
                     as `Fold's from the
                     <https://hackage.haskell.org/package/foldl foldl> package.
homepage:            http://github.com/Data61/foldl-statistics#readme
license:             BSD3
license-file:        LICENSE
author:              Alex Mason
maintainer:          Alex.Mason@data61.csiro.au
copyright:           2016 Data61 (CSIRO)
category:            Math, Statistics
build-type:          Simple
extra-source-files:  CHANGELOG.md, README.md
cabal-version:       >=1.10
tested-with:         GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.*

library
  hs-source-dirs:      src
  exposed-modules:     Control.Foldl.Statistics
  default-language:    Haskell2010
  build-depends:       base             >= 4.7 && < 5
                       , foldl          >= 1.1 && < 1.4
                       , math-functions >= 0.1 && < 0.3
                       , profunctors    >= 5.2 && < 5.3
                       , containers     >= 0.1.0.0 && < 0.6
                       , unordered-containers >= 0.1.0.0 && < 0.3
                       , hashable       >=1.0.1.1 && < 1.3
  if impl(ghc < 8.0)
    build-depends:     semigroups       >= 0.18 && < 1.0


test-suite foldl-statistics-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010
  build-depends:       base
                     , foldl-statistics
                     , foldl
                     , statistics           >= 0.13 && < 0.15
                     , tasty                >= 0.11 && < 0.12
                     , tasty-quickcheck     >= 0.8 && < 0.10
                     , vector               >= 0.11 && < 0.13
                     , quickcheck-instances >= 0.3 && < 0.4
                     , profunctors
  if impl(ghc < 8.0)
    build-depends:     semigroups

Benchmark bench-folds
    type:       exitcode-stdio-1.0
    hs-source-dirs:      bench
    main-is:             Main.hs
    default-language:    Haskell2010
    build-depends: base
                  , foldl-statistics
                  , foldl
                  , statistics      >= 0.13 && < 0.15
                  , criterion       >= 1.1 && < 1.3
                  , vector          >= 0.10 && < 1.0
                  , mwc-random      >= 0.13 && < 0.14
    if impl(ghc < 8.0)
      build-depends: semigroups

source-repository head
  type:     git
  location: https://github.com/Data61/foldl-statistics