packages feed

approx-rand-test-0.1.1: approx-rand-test.cabal

Name:          approx-rand-test
Version:       0.1.1
License:       OtherLicense
License-file:  LICENSE
Copyright:     Copyright 2012 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:   Utility to perform approximate randomization tests.
Cabal-Version: >= 1.8
Build-Type:    Simple
Extra-Source-Files:
  utils/cairo/CairoHistogram.hs
  utils/nocairo/CairoHistogram.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: Enable non-terminal histogram output, requiring Cairo.
  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:  Histogram, SampleIO, TextHistogram
  HS-Source-Dirs: utils
  Ghc-Options:    -O2 -Wall
  Build-Depends:  base >= 4 && < 5, approx-rand-test,
                  conduit >= 0.4 && < 1.1, text >= 0.11.1 && < 0.11.3,
                  containers == 0.4.*, vector >= 0.9 && < 0.11,
                  mersenne-random-pure64 == 0.2.0.*,
                  monad-mersenne-random == 0.1,
                  statistics == 0.10.*
  if flag(withCairo)
    Hs-Source-Dirs: utils/cairo
    Build-Depends:  Chart >= 0.15 && < 0.17, colour == 2.3.*,
                    data-accessor == 0.2.2.*, filepath >= 1.3 && < 1.5,
                    vector-algorithms == 0.5.*
  else
    Hs-Source-Dirs: utils/nocairo


Executable approx_rand_test_paired
  Main-Is:        approx-rand-test-paired.hs
  Other-Modules:  Histogram, SampleIO, TextHistogram
  HS-Source-Dirs: utils
  Ghc-Options:    -O2 -Wall
  Build-Depends:  base >= 4 && < 5, approx-rand-test,
                  conduit >= 0.4 && < 1.1, text >= 0.11.1 && < 0.11.3,
                  containers == 0.4.*, 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.*
  if flag(withCairo)
    Hs-Source-Dirs: utils/cairo
    Build-Depends:  Chart >= 0.15 && < 0.17, colour == 2.3.*,
                    data-accessor == 0.2.2.*, filepath >= 1.3 && < 1.5,
                    vector-algorithms == 0.5.*

  else
    Hs-Source-Dirs: utils/nocairo

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.*,
                  test-framework-hunit == 0.2.*