Make this package now really integer-gmp, rather than pretending it's integer
authorIan Lynagh <igloo@earth.li>
Mon, 22 Jun 2009 22:18:12 +0000 (22:18 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 22 Jun 2009 22:18:12 +0000 (22:18 +0000)
GHC/Integer/GMP.lhs [moved from GHC/Integer.lhs with 99% similarity]
GHC/Integer/GMP/Internals.hs [moved from GHC/Integer/Internals.hs with 99% similarity]
configure.ac
integer-gmp.buildinfo.in [moved from integer.buildinfo.in with 100% similarity]
integer-gmp.cabal [moved from integer.cabal with 75% similarity]

similarity index 99%
rename from GHC/Integer.lhs
rename to GHC/Integer/GMP.lhs
index 424001c..c22b896 100644 (file)
@@ -2,7 +2,7 @@
 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
 -----------------------------------------------------------------------------
 -- |
--- Module      :  GHC.Integer
+-- Module      :  GHC.Integer.GMP
 -- Copyright   :  (c) The University of Glasgow 1994-2008
 -- License     :  see libraries/integer-gmp/LICENSE
 --
@@ -25,7 +25,7 @@
 #error Unknown SIZEOF_HSWORD; can't define INT_MINBOUND and NEG_INT_MINBOUND
 #endif
 
-module GHC.Integer (
+module GHC.Integer.GMP (
     Integer,
     smallInteger, wordToInteger, integerToWord, toInt#,
 #if WORD_SIZE_IN_BITS < 64
@@ -56,7 +56,7 @@ import GHC.Prim (
     indexIntArray#,
  )
 
-import GHC.Integer.Internals (
+import GHC.Integer.GMP.Internals (
     Integer(..),
 
     -- GMP-related primitives
similarity index 99%
rename from GHC/Integer/Internals.hs
rename to GHC/Integer/GMP/Internals.hs
index a6262b8..859c8e9 100644 (file)
@@ -4,7 +4,7 @@
 {-# OPTIONS_HADDOCK hide #-}
 
 #include "MachDeps.h"
-module GHC.Integer.Internals (
+module GHC.Integer.GMP.Internals (
     Integer(..),
 
     cmpInteger#,
index c1eabdd..af75ede 100644 (file)
@@ -69,7 +69,7 @@ AC_SUBST(GMP_FRAMEWORK)
 AC_SUBST(HaveLibGmp)
 AC_SUBST(HaveFrameworkGMP)
 
-AC_CONFIG_FILES([integer.buildinfo gmp/config.mk])
+AC_CONFIG_FILES([integer-gmp.buildinfo gmp/config.mk])
 
 dnl--------------------------------------------------------------------
 dnl * Generate the header cbits/GmpDerivedConstants.h
similarity index 75%
rename from integer.cabal
rename to integer-gmp.cabal
index f9ee8b8..5c323db 100644 (file)
@@ -1,4 +1,4 @@
-name:           integer
+name:           integer-gmp
 version:        0.1.0.0
 license:        BSD3
 license-file:   LICENSE
@@ -21,12 +21,9 @@ source-repository head
 
 Library {
     build-depends: ghc-prim
-    exposed-modules: GHC.Integer
-                     GHC.Integer.Internals
+    exposed-modules: GHC.Integer.GMP
+                     GHC.Integer.GMP.Internals
     extensions: CPP, MagicHash, UnboxedTuples,
                 ForeignFunctionInterface, UnliftedFFITypes
-    -- We need to set the package name to integer (without a version number)
-    -- as it's magic.
-    ghc-options: -package-name integer
     c-sources: cbits/cbits.c
 }