summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-10-24 14:50:50 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-10-24 15:02:18 +0200
commit0a39d19f7332b94e119d32f22f0c4aa7a51a3114 (patch)
tree85c5ed1c171631e13d3b59b732ab0f92fdf9e35b /libraries/integer-gmp
parentc8db31583442f4862c6442ae712c81bd95f24ffc (diff)
downloadhaskell-0a39d19f7332b94e119d32f22f0c4aa7a51a3114.tar.gz
Refactor & modernize `.cabal` to `cabal-version>=1.10`
This sets a sensible cabal category (i.e. `Numerical`), extends `extra-tmp-{files,files}` to make this package self-contained, updates the bug-report URL, and cleans up the `{-# LANGUAGE #-}` pragma usage in the source code. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'libraries/integer-gmp')
-rw-r--r--libraries/integer-gmp/GHC/Integer/GMP/Prim.hs5
-rw-r--r--libraries/integer-gmp/GHC/Integer/Type.lhs2
-rw-r--r--libraries/integer-gmp/integer-gmp.cabal68
3 files changed, 53 insertions, 22 deletions
diff --git a/libraries/integer-gmp/GHC/Integer/GMP/Prim.hs b/libraries/integer-gmp/GHC/Integer/GMP/Prim.hs
index de9477fc37..401855b7e3 100644
--- a/libraries/integer-gmp/GHC/Integer/GMP/Prim.hs
+++ b/libraries/integer-gmp/GHC/Integer/GMP/Prim.hs
@@ -1,6 +1,5 @@
-{-# LANGUAGE ForeignFunctionInterface, GHCForeignImportPrim, CPP,
- MagicHash, UnboxedTuples, UnliftedFFITypes, BangPatterns #-}
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+{-# LANGUAGE BangPatterns, CPP, MagicHash, NoImplicitPrelude, UnboxedTuples
+ , UnliftedFFITypes, GHCForeignImportPrim #-}
{-# OPTIONS_HADDOCK hide #-}
#include "MachDeps.h"
diff --git a/libraries/integer-gmp/GHC/Integer/Type.lhs b/libraries/integer-gmp/GHC/Integer/Type.lhs
index 3d4994a3da..6e13eb5089 100644
--- a/libraries/integer-gmp/GHC/Integer/Type.lhs
+++ b/libraries/integer-gmp/GHC/Integer/Type.lhs
@@ -1,5 +1,5 @@
\begin{code}
-{-# LANGUAGE BangPatterns, CPP, MagicHash, NoImplicitPrelude #-}
+{-# LANGUAGE BangPatterns, CPP, UnboxedTuples, UnliftedFFITypes, MagicHash, NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}
-- Commentary of Integer library is located on the wiki:
diff --git a/libraries/integer-gmp/integer-gmp.cabal b/libraries/integer-gmp/integer-gmp.cabal
index be9ce7e19f..6bc847cf4f 100644
--- a/libraries/integer-gmp/integer-gmp.cabal
+++ b/libraries/integer-gmp/integer-gmp.cabal
@@ -3,35 +3,67 @@ 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://hackage.haskell.org/trac/ghc/newticket?component=libraries%20%28other%29
+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 contains an Integer library based on GMP.
-cabal-version: >=1.6
-build-type: Configure
+build-type: Configure
+cabal-version: >=1.10
extra-source-files:
- cbits/float.c
- cbits/alloc.c
- cbits/longlong.c
+ aclocal.m4
+ cbits/alloc.c
+ cbits/float.c
+ cbits/gmp-wrappers.cmm
+ cbits/longlong.c
+ 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
source-repository head
type: git
location: http://git.haskell.org/packages/integer-gmp.git
-Library {
- build-depends: ghc-prim
- exposed-modules: GHC.Integer
- GHC.Integer.GMP.Internals
- GHC.Integer.GMP.Prim
- GHC.Integer.Logarithms
- GHC.Integer.Logarithms.Internals
- other-modules: GHC.Integer.Type
- extensions: CPP, MagicHash, UnboxedTuples, NoImplicitPrelude,
- ForeignFunctionInterface, UnliftedFFITypes
+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: -package-name integer-gmp
-}
+ ghc-options: -Wall -package-name integer-gmp