summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/integer-gmp.cabal
blob: 648f500d0369af6ea995c72e3820c47049e8ba07 (plain)
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
cabal-version:       2.0
name:                integer-gmp
version:             1.0.2.0

synopsis:            Integer library based on GMP
license:             BSD3
license-file:        LICENSE
author:              Herbert Valerio Riedel
maintainer:          hvr@gnu.org
category:            Numeric, Algebra
build-type:          Configure
description:
    This package provides the low-level implementation of the standard
    'Integer' type based on the
    <http://gmplib.org/ GNU Multiple Precision Arithmetic Library (GMP)>.
    .
    This package provides access to the internal representation of
    'Integer' as well as primitive operations with no proper error
    handling, and should only be used directly with the utmost care.

extra-source-files:
    aclocal.m4
    cbits/wrappers.c
    changelog.md
    config.guess
    config.sub
    configure
    configure.ac
    config.mk.in
    include/HsIntegerGmp.h.in
    install-sh
    integer-gmp.buildinfo.in

-- NB: Many of these tmp files no longer ever actually get plopped in
-- the root directory post Cabal 2.4, thanks to a change that causes
-- autoconf/configure to get run inside the dist directory.
extra-tmp-files:
    autom4te.cache
    config.log
    config.status
    config.mk
    integer-gmp.buildinfo
    include/HsIntegerGmp.h

library
  default-language:    Haskell2010
  other-extensions:
    BangPatterns
    CApiFFI
    CPP
    DeriveDataTypeable
    ExplicitForAll
    GHCForeignImportPrim
    MagicHash
    NegativeLiterals
    NoImplicitPrelude
    RebindableSyntax
    StandaloneDeriving
    UnboxedTuples
    UnliftedFFITypes
  build-depends:       ghc-prim >= 0.5.1.0 && < 0.7
  hs-source-dirs:      src/
  -- We need to set the unit ID to integer-wired-in
  -- (without a version number) as it's magic.
  -- See Note [The integer library] in PrelNames
  ghc-options: -this-unit-id integer-wired-in -Wall
  cc-options: -std=c99 -Wall

  include-dirs: include
  c-sources:
    cbits/wrappers.c

  exposed-modules:
    GHC.Integer
    GHC.Integer.Logarithms
    GHC.Integer.Logarithms.Internals

    GHC.Integer.GMP.Internals

  other-modules:
    GHC.Integer.Type