on master help sign in
Rename integer-simple to integer-pure (gh-138)
b806d94Bryan O'Sullivan
Data/Text/Lazy/Builder/Int.hs+3−3
@@ -36,14 +36,14 @@ import Control.Monad.ST
36#ifdef __GLASGOW_HASKELL__
36#ifdef __GLASGOW_HASKELL__
37# if defined(INTEGER_GMP)
37# if defined(INTEGER_GMP)
38import GHC.Integer.GMP.Internals (Integer(S#))
38import GHC.Integer.GMP.Internals (Integer(S#))
39−# elif defined(INTEGER_SIMPLE)
39+# elif defined(INTEGER_PURE)
40import GHC.Integer
40import GHC.Integer
41# else
41# else
42−# error "You need to use either GMP or integer-simple."
42+# error "You need to use either GMP or integer-pure."
43# endif
43# endif
44#endif
44#endif
45
45
46−#if defined(INTEGER_GMP) || defined(INTEGER_SIMPLE)
46+#if defined(INTEGER_GMP) || defined(INTEGER_PURE)
47# define PAIR(a,b) (# a,b #)
47# define PAIR(a,b) (# a,b #)
48#else
48#else
49# define PAIR(a,b) (a,b)
49# define PAIR(a,b) (a,b)
changelog.md+4
@@ -1,5 +1,9 @@
11.2.2.0
11.2.2.0
2
2
3+* The `integer-simple` package, upon which this package optionally
4+ depended, has been replaced with `integer-pure`. The build flag has
5+ been renamed accordingly.
6+
3* Bug fix: For the `Binary` instance, If UTF-8 decoding fails during a
7* Bug fix: For the `Binary` instance, If UTF-8 decoding fails during a
4 `get`, the error is propagated via `fail` instead of an uncatchable
8 `get`, the error is propagated via `fail` instead of an uncatchable
5 crash.
9 crash.
text.cabal+8−8
@@ -69,8 +69,8 @@ flag developer
69 default: False
69 default: False
70 manual: True
70 manual: True
71
71
72−flag integer-simple
72+flag integer-pure
73− description: Use the simple integer library instead of GMP
73+ description: Use the pure-Haskell integer library instead of GMP
74
74
75library
75library
76 c-sources: cbits/cbits.c
76 c-sources: cbits/cbits.c
@@ -143,9 +143,9 @@ library
143 ghc-options: -Werror
143 ghc-options: -Werror
144 cpp-options: -DASSERTS
144 cpp-options: -DASSERTS
145
145
146− if flag(integer-simple)
146+ if flag(integer-pure)
147− cpp-options: -DINTEGER_SIMPLE
147+ cpp-options: -DINTEGER_PURE
148− build-depends: integer-simple >= 0.1 && < 0.5
148+ build-depends: integer-pure >= 1.0
149 else
149 else
150 cpp-options: -DINTEGER_GMP
150 cpp-options: -DINTEGER_GMP
151 build-depends: integer-gmp >= 0.2
151 build-depends: integer-gmp >= 0.2
@@ -179,9 +179,9 @@ test-suite tests
179 test-framework-hunit >= 0.2,
179 test-framework-hunit >= 0.2,
180 test-framework-quickcheck2 >= 0.2
180 test-framework-quickcheck2 >= 0.2
181
181
182− if flag(integer-simple)
182+ if flag(integer-pure)
183− cpp-options: -DINTEGER_SIMPLE
183+ cpp-options: -DINTEGER_PURE
184− build-depends: integer-simple >= 0.1 && < 0.5
184+ build-depends: integer-pure >= 0.1 && < 0.5
185 else
185 else
186 cpp-options: -DINTEGER_GMP
186 cpp-options: -DINTEGER_GMP
187 build-depends: integer-gmp >= 0.2
187 build-depends: integer-gmp >= 0.2