packages feed

approx-rand-test-0.2.1: approx-rand-test.cabal

Name:          approx-rand-test
Version:       0.2.1
License:       OtherLicense
License-file:  LICENSE
Copyright:     Copyright 2012-2013 Daniël de Kok
Author:        Daniël de Kok <me@danieldk.eu>
Maintainer:    Daniël de Kok <me@danieldk.eu>
Homepage:      http://github.com/danieldk/approx-rand-test
Category:      Statistics
Synopsis:      Approximate randomization test
Description:
  .
  Functions and utilities to perform paired and unpaired approximate
  randomization tests (Noreen, 1989).
  .
  The utilities can also draw histograms of the applications of the test
  statistic to the randomized samples. For support for more file formats,
  install the package with the @-withCairo@ flag.
  .
Cabal-Version: >= 1.8
Build-Type:    Simple
Extra-Source-Files:
  utils/cairo/ChartBackend.hs
  utils/diagrams/ChartBackend.hs

Source-Repository head
  Type:     git
  Location: git://github.com/danieldk/approx-rand-test.git

Source-Repository this
  Type:     git
  Location: git://github.com/danieldk/approx-rand-test.git
  Tag:      0.1.1

Flag withCairo
  Description: Use Cairo for drawing charts, supports more output formats.
  Default:     False

Library
  HS-Source-Dirs:  src
  Ghc-Options:     -O2 -Wall
  Exposed-modules: Statistics.Test.ApproxRand, Statistics.Test.Correction
  Build-Depends:   base >= 4 && < 5, vector >= 0.9 && < 0.11,
                   mersenne-random-pure64 == 0.2.0.*,
                   monad-mersenne-random == 0.1,
                   mtl >= 2.0.1 && < 2.2, statistics == 0.10.*,
                   transformers >= 0.2.2 && < 0.4


Executable approx_rand_test
  Main-Is:        approx-rand-test.hs
  Other-Modules:  ChartBackend, ChartHistogram, Histogram, SampleIO,
                  TextHistogram
  HS-Source-Dirs: utils
  Ghc-Options:    -O2 -Wall
  Build-Depends:  base >= 4 && < 5, approx-rand-test,
                  Chart == 1.1, colour == 2.3.*, conduit >= 0.4 && < 1.1,
                  containers >= 0.4 && < 0.6, data-default == 0.5.*,
                  data-default-class == 0.0.*, filepath >= 1.3 && < 1.5,
                  lens == 3.9.*, mersenne-random-pure64 == 0.2.0.*,
                  monad-mersenne-random == 0.1, mtl >= 2.0.1 && < 2.2,
                  text >= 0.11.1 && < 0.11.4, vector >= 0.9 && < 0.11,
                  statistics == 0.10.*, vector-algorithms == 0.5.*

  if flag(withCairo)
    Hs-Source-Dirs: utils/cairo
    Build-Depends:  Chart-cairo == 1.1
  else
    Hs-Source-Dirs: utils/diagrams
    Build-Depends:  Chart-diagrams == 1.1


Executable approx_rand_test_paired
  Main-Is:        approx-rand-test-paired.hs
  Other-Modules:  ChartBackend, ChartHistogram, Histogram, SampleIO,
                  TextHistogram
  HS-Source-Dirs: utils
  Ghc-Options:    -O2 -Wall
  Build-Depends:  base >= 4 && < 5, approx-rand-test,
                  Chart == 1.1, colour == 2.3.*, conduit >= 0.4 && < 1.1,
                  containers >= 0.4 && < 0.6, data-default == 0.5.*,
                  data-default-class == 0.0.*, filepath >= 1.3 && < 1.5,
                  lens == 3.9.*, mersenne-random-pure64 == 0.2.0.*,
                  monad-mersenne-random == 0.1, mtl >= 2.0.1 && < 2.2,
                  text >= 0.11.1 && < 0.11.4, vector >= 0.9 && < 0.11,
                  statistics == 0.10.*, vector-algorithms == 0.5.*

  if flag(withCairo)
    Hs-Source-Dirs: utils/cairo
    Build-Depends:  Chart-cairo == 1.1
  else
    Hs-Source-Dirs: utils/diagrams
    Build-Depends:  Chart-diagrams == 1.1

Test-Suite tests
  Type:           exitcode-stdio-1.0
  Hs-Source-Dirs: tests
  Main-Is:        tests.hs
  ghc-options:    -Wall
  Build-Depends:  base >= 4 && < 5, vector >= 0.9 && < 0.11,
                  approx-rand-test, mtl >= 2.0.1 && < 2.2,
                  ieee754 == 0.7.*,
                  mersenne-random-pure64 == 0.2.0.*,
                  monad-mersenne-random == 0.1,
                  HUnit >= 1.2.4 && < 1.2.6,
                  test-framework >= 0.6 && < 0.9,
                  test-framework-hunit >= 0.2 && < 0.4