Use atomicModifyIORef' (strict) (GHC #4218)
[packages/random.git] / random.cabal
1 name:           random
2 version:        1.0.1.2
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
8 license:        BSD3
9 license-file:   LICENSE
10 maintainer:     rrnewton@gmail.com
11 bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/random
12 synopsis:       random number library
13 category:       System
14 description:
15         This package provides a basic random number generation
16         library, including the ability to split random number
17         generators.
18 build-type: Simple
19 -- cabal-version 1.8 needed because "the field 'build-depends: random' refers
20 -- to a library which is defined within the same package"
21 cabal-version: >= 1.8
22
23
24
25 Library
26     exposed-modules:
27         System.Random
28     extensions: CPP
29     GHC-Options: -O2 
30     build-depends: base >= 3 && < 5, time
31
32 source-repository head
33     type:     git
34     location: http://git.haskell.org/packages/random.git
35
36 -- To run the Test-Suite:
37 -- $ cabal configure --enable-tests
38 -- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS"
39
40 Test-Suite TestRandomRs
41     type:           exitcode-stdio-1.0
42     main-is:        TestRandomRs.hs
43     hs-source-dirs: tests
44     build-depends:  base >= 3 && < 5, random
45     ghc-options:    -rtsopts -O2
46     -- TODO. Why does the following not work?
47     --test-options:   +RTS -M1M -RTS
48
49 Test-Suite TestRandomIOs
50     type:           exitcode-stdio-1.0
51     main-is:        TestRandomIOs.hs
52     hs-source-dirs: tests
53     build-depends:  base >= 3 && < 5, random
54     ghc-options:    -rtsopts -O2