File: hgmp.cabal

package info (click to toggle)
haskell-hgmp 0.1.2.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: haskell: 913; ansic: 16; makefile: 6
file content (70 lines) | stat: -rw-r--r-- 2,405 bytes parent folder | download
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:                hgmp
version:             0.1.2.1
x-revision: 2
synopsis:            Haskell interface to GMP
description:         Types and instances, and marshalling between Integer and
                     Rational and the corresponding GMP types, along with raw
                     foreign imports of GMP functions.  Allows FFI to GMP code
                     (whether in GMP itself or in third-party code that uses
                     GMP).
                     .
                     Supports only GHC with integer-gmp or ghc-bignum, this
                     might change if there's any demand.

homepage:            https://code.mathr.co.uk/hgmp

license:             BSD3
license-file:        LICENSE

author:              Claude Heiland-Allen
maintainer:          claude@mathr.co.uk
copyright:           2016,2017 Claude Heiland-Allen
category:            Numeric
build-type:          Simple
extra-source-files:  README.md CHANGELOG.md examples/primes.hs
cabal-version:       >=1.10

library
  exposed-modules:     Numeric.GMP.Utils
                     , Numeric.GMP.Types
                     , Numeric.GMP.Raw.Safe
                     , Numeric.GMP.Raw.Unsafe
  build-depends:       base >= 4.8 && < 4.20
                     , ghc-prim >= 0.4 && < 0.12

  if (impl(ghc >= 8.11))
    build-depends:     ghc-bignum >= 1.0 && < 1.4
  else
    build-depends:     integer-gmp >= 1.0 && < 1.1

  build-tools:         hsc2hs
  hs-source-dirs:      src
  c-sources:           cbits/wrappers.c
  default-language:    Haskell2010
  other-extensions:    CPP
                       DeriveDataTypeable
                       GeneralizedNewtypeDeriving
                       ForeignFunctionInterface
                       MagicHash
                       UnboxedTuples
  ghc-options:         -Wall

test-suite Main
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Main.hs
  build-depends:       base
                     , hgmp
                     , QuickCheck >= 2.8 && < 2.15
  default-language:    Haskell2010
  other-extensions:    ForeignFunctionInterface
                       TemplateHaskell

source-repository head
  type:                git
  location:            https://code.mathr.co.uk/hgmp.git

source-repository this
  type:                git
  location:            https://code.mathr.co.uk/hgmp.git
  tag:                 v0.1.2.1