forked from ch1bo/integer-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinteger-openssl.cabal
83 lines (73 loc) · 2.35 KB
/
integer-openssl.cabal
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
71
72
73
74
75
76
77
78
79
80
81
82
83
name: integer-openssl
version: 0.1.0
cabal-version: >= 2.0
author: Sebastian Nagel
maintainer: sebastian.nagel@ncoding.at
copyright: 2018 Sebastian Nagel
license: BSD3
license-file: LICENSE
category: Numeric, Algebra
build-type: Simple
synopsis: Integer library using openssl's bignum
description:
Implementation of the 'Integer' type using the <https://www.openssl.org/ OpenSSL BIGNUM>
arbitrary size integer library.
extra-source-files:
README.md
source-repository head
type: git
location: https://github.com/ch1bo/integer-openssl
flag redefine-unit-id
description: Rewrite package name without version, used for usage in ghc
default: False
flag integer-simple
description: Test and benchmark against integer-simple package instead of integer-gmp
default: False
library
default-language: Haskell2010
hs-source-dirs: src/
exposed-modules: GHC.Integer
, GHC.Integer.Type
, GHC.Integer.Logarithms
, GHC.Integer.Logarithms.Internals
build-depends: ghc-prim ^>= 0.5.1.0
extra-libraries: crypto
includes: openssl/bn.h
c-sources: wrappers.c
--ghc-options: -this-unit-id integer-wired-in
ghc-options: -Wall -Wcompat
-- Internal helper library to re-export GHC.Integer module
library integer-openssl-internal
default-language: Haskell2010
build-depends: integer-openssl
reexported-modules: GHC.Integer as OpenSSL.GHC.Integer
, GHC.Integer.Type as OpenSSL.GHC.Integer.Type
test-suite integer-openssl-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: base >=4.7 && <5
, ghc-prim
, hspec
, integer-openssl-internal
, QuickCheck
if flag(integer-simple)
build-depends: integer-simple
else
build-depends: integer-gmp
benchmark integer-openssl-bench
type: exitcode-stdio-1.0
main-is: Bench.hs
hs-source-dirs: bench
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: base >=4.7 && <5
, ghc-prim
, criterion
, integer-openssl-internal
if flag(integer-simple)
build-depends: integer-simple
else
build-depends: integer-gmp