Merge pull request #18 from cartazio/master
[packages/random.git] / random.cabal
1 name:           random
2 version:        1.1
3
4
5
6
7 license:        BSD3
8 license-file:   LICENSE
9 maintainer:     rrnewton@gmail.com
10 bug-reports:    https://github.com/haskell/random/issues
11 synopsis:       random number library
12 category:       System
13 description:
14         This package provides a basic random number generation
15         library, including the ability to split random number
16         generators.
17
18 extra-source-files:
19   .travis.yml
20   README.md
21   CHANGELOG.md
22   .gitignore
23   .darcs-boring
24
25
26
27 build-type: Simple
28 -- cabal-version 1.8 needed because "the field 'build-depends: random' refers
29 -- to a library which is defined within the same package"
30 cabal-version: >= 1.8
31
32
33
34 Library
35     exposed-modules:
36         System.Random
37     extensions: CPP
38     GHC-Options: -O2
39     build-depends: base >= 3 && < 5, time
40
41 source-repository head
42     type:     git
43     location: http://git.haskell.org/packages/random.git
44
45 -- To run the Test-Suite:
46 -- $ cabal configure --enable-tests
47 -- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS"
48
49 Test-Suite T7936
50     type:           exitcode-stdio-1.0
51     main-is:        T7936.hs
52     hs-source-dirs: tests
53     build-depends:  base >= 3 && < 5, random
54     ghc-options:    -rtsopts -O2
55
56 Test-Suite TestRandomRs
57     type:           exitcode-stdio-1.0
58     main-is:        TestRandomRs.hs
59     hs-source-dirs: tests
60     build-depends:  base >= 3 && < 5, random
61     ghc-options:    -rtsopts -O2
62     -- TODO. Why does the following not work?
63     --test-options:   +RTS -M1M -RTS
64
65 Test-Suite TestRandomIOs
66     type:           exitcode-stdio-1.0
67     main-is:        TestRandomIOs.hs
68     hs-source-dirs: tests
69     build-depends:  base >= 3 && < 5, random
70     ghc-options:    -rtsopts -O2