Add Travis icon.
[packages/random.git] / random.cabal
1 name:           random
2 version:        1.0.1.3
3
4 -- 1.0.1.0 -- bump for bug fixes, but no SplittableGen yet
5 -- 1.0.1.1 -- bump for overflow bug fixes
6 -- 1.0.1.2 -- bump for ticket 8704, build fusion
7 -- 1.0.1.3 -- bump for various bug fixes
8
9 license:        BSD3
10 license-file:   LICENSE
11 maintainer:     rrnewton@gmail.com
12 bug-reports:    https://github.com/haskell/random/issues
13 synopsis:       random number library
14 category:       System
15 description:
16         This package provides a basic random number generation
17         library, including the ability to split random number
18         generators.
19 build-type: Simple
20 -- cabal-version 1.8 needed because "the field 'build-depends: random' refers
21 -- to a library which is defined within the same package"
22 cabal-version: >= 1.8
23
24
25
26 Library
27     exposed-modules:
28         System.Random
29     extensions: CPP
30     GHC-Options: -O2 
31     build-depends: base >= 3 && < 5, time
32
33 source-repository head
34     type:     git
35     location: http://git.haskell.org/packages/random.git
36
37 -- To run the Test-Suite:
38 -- $ cabal configure --enable-tests
39 -- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS"
40
41 Test-Suite T7936
42     type:           exitcode-stdio-1.0
43     main-is:        T7936.hs
44     hs-source-dirs: tests
45     build-depends:  base >= 3 && < 5, random
46     ghc-options:    -rtsopts -O2
47
48 Test-Suite TestRandomRs
49     type:           exitcode-stdio-1.0
50     main-is:        TestRandomRs.hs
51     hs-source-dirs: tests
52     build-depends:  base >= 3 && < 5, random
53     ghc-options:    -rtsopts -O2
54     -- TODO. Why does the following not work?
55     --test-options:   +RTS -M1M -RTS
56
57 Test-Suite TestRandomIOs
58     type:           exitcode-stdio-1.0
59     main-is:        TestRandomIOs.hs
60     hs-source-dirs: tests
61     build-depends:  base >= 3 && < 5, random
62     ghc-options:    -rtsopts -O2