prepping for the 1.1 fixup release
[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
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