File: random.cabal

package info (click to toggle)
haskell-random 1.1-3~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 112 kB
  • sloc: haskell: 324; makefile: 2
file content (70 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name:		random
version:	1.1




license:	BSD3
license-file:	LICENSE
maintainer:	core-libraries-committee@haskell.org
bug-reports:	https://github.com/haskell/random/issues
synopsis:	random number library
category:       System
description:
	This package provides a basic random number generation
	library, including the ability to split random number
	generators.

extra-source-files:
  .travis.yml
  README.md
  CHANGELOG.md
  .gitignore
  .darcs-boring



build-type: Simple
-- cabal-version 1.8 needed because "the field 'build-depends: random' refers
-- to a library which is defined within the same package"
cabal-version: >= 1.8



Library
    exposed-modules:
        System.Random
    extensions:	CPP
    GHC-Options: -O2
    build-depends: base >= 3 && < 5, time

source-repository head
    type:     git
    location: http://git.haskell.org/packages/random.git

-- To run the Test-Suite:
-- $ cabal configure --enable-tests
-- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS"

Test-Suite T7936
    type:           exitcode-stdio-1.0
    main-is:        T7936.hs
    hs-source-dirs: tests
    build-depends:  base >= 3 && < 5, random
    ghc-options:    -rtsopts -O2

Test-Suite TestRandomRs
    type:           exitcode-stdio-1.0
    main-is:        TestRandomRs.hs
    hs-source-dirs: tests
    build-depends:  base >= 3 && < 5, random
    ghc-options:    -rtsopts -O2
    -- TODO. Why does the following not work?
    --test-options:   +RTS -M1M -RTS

Test-Suite TestRandomIOs
    type:           exitcode-stdio-1.0
    main-is:        TestRandomIOs.hs
    hs-source-dirs: tests
    build-depends:  base >= 3 && < 5, random
    ghc-options:    -rtsopts -O2