summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/integer-gmp.cabal
blob: 2473ccb0e1adab9335cd37d6f5b7a0c35d9c7229 (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
name:           integer-gmp
version:        0.5.1.0
-- GHC 7.6.1 released with 0.5.0.0
license:        BSD3
license-file:   LICENSE
category:       Numerical
maintainer:     libraries@haskell.org
bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29&keywords=integer-gmp
synopsis:       Integer library based on GMP
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.
    .
    For more details about the design of @integer-gmp@, see
    <https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/Integer GHC Commentary: Libraries/Integer>.
build-type:     Configure
cabal-version:  >=1.10

extra-source-files:
    aclocal.m4
    cbits/alloc.c
    cbits/float.c
    cbits/gmp-wrappers.cmm
    cbits/longlong.c
    changelog.md
    config.guess
    config.sub
    configure
    configure.ac
    gmp/config.mk.in
    install-sh
    integer-gmp.buildinfo.in

extra-tmp-files:
    autom4te.cache
    config.log
    config.status
    gmp/config.mk
    integer-gmp.buildinfo

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

source-repository this
    type:     git
    location: http://git.haskell.org/packages/integer-gmp.git
    tag:      integer-gmp-0.5.1.0-release

Library
    default-language: Haskell2010
    other-extensions:
        BangPatterns
        CPP
        GHCForeignImportPrim
        MagicHash
        NoImplicitPrelude
        UnboxedTuples
        UnliftedFFITypes

    exposed-modules:
        GHC.Integer
        GHC.Integer.GMP.Internals
        GHC.Integer.GMP.Prim
        GHC.Integer.Logarithms
        GHC.Integer.Logarithms.Internals
    other-modules:
        GHC.Integer.Type

    c-sources: cbits/cbits.c

    build-depends: ghc-prim >= 0.3.1 && < 0.4

    -- We need to set the package name to integer-gmp
    -- (without a version number) as it's magic.
    ghc-options: -Wall -package-name integer-gmp