File: crypto-random.cabal

package info (click to toggle)
haskell-crypto-random 0.0.9-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 96 kB
  • sloc: haskell: 401; ansic: 52; makefile: 2
file content (49 lines) | stat: -rw-r--r-- 1,566 bytes parent folder | download | duplicates (2)
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
Name:                crypto-random
Version:             0.0.9
Description:         Simple cryptographic random related types
License:             BSD3
License-file:        LICENSE
Copyright:           Vincent Hanquez <vincent@snarc.org>
Author:              Vincent Hanquez <vincent@snarc.org>
Maintainer:          Vincent Hanquez <vincent@snarc.org>
Synopsis:            Simple cryptographic random related types
Category:            Cryptography
Build-Type:          Simple
Homepage:            http://github.com/vincenthz/hs-crypto-random
Cabal-Version:       >=1.6

Library
  Build-depends:     base >= 4 && < 5
                   , bytestring
                   , securemem
                   , vector
  Exposed-modules:   Crypto.Random
                   , Crypto.Random.Test
                   , Crypto.Random.API
  Other-modules:     Crypto.Random.Generator
                   , Crypto.Random.Entropy
                   , Crypto.Random.Entropy.Source
  ghc-options:       -Wall
  if os(windows)
    cpp-options:    -DWINDOWS
    Build-Depends:  Win32
    Other-modules:  Crypto.Random.Entropy.Windows
    extra-libraries: advapi32
  else
    Build-Depends:  unix
    Other-modules:  Crypto.Random.Entropy.Unix

  if arch(i386)
    cpp-options: -DARCH_X86
  if arch(x86_64)
    cpp-options: -DARCH_X86_64

  if arch(x86_64)
    cpp-options:    -DSUPPORT_RDRAND
    Other-modules:  Crypto.Random.Entropy.RDRand
    c-sources:      cbits/rdrand.c

source-repository head
  type:     git
  location: git://github.com/vincenthz/hs-crypto-random
  subdir:   types