on master help sign in
Rename integer-simple to integer-pure (gh-138)
commitb806d9491c740dfcbf172d2936f1eeb3b72d3492 authorBryan O'Sullivan <bos@serpentine.com> dateTue 22 Dec 2015, 12:36 (11 years ago) parentb933ac2
3 files changed+15−11
Data/Text/Lazy/Builder/Int.hs+3−3 changelog.md+4 text.cabal+8−8
Data/Text/Lazy/Builder/Int.hs+3−3
@@ -36,14 +36,14 @@ import Control.Monad.ST
3636#ifdef __GLASGOW_HASKELL__
3737# if defined(INTEGER_GMP)
3838import GHC.Integer.GMP.Internals (Integer(S#))
39−# elif defined(INTEGER_SIMPLE)
39+# elif defined(INTEGER_PURE)
4040import GHC.Integer
4141# else
42−# error "You need to use either GMP or integer-simple."
42+# error "You need to use either GMP or integer-pure."
4343# endif
4444#endif
4545
46−#if defined(INTEGER_GMP) || defined(INTEGER_SIMPLE)
46+#if defined(INTEGER_GMP) || defined(INTEGER_PURE)
4747# define PAIR(a,b) (# a,b #)
4848#else
4949# define PAIR(a,b) (a,b)
changelog.md+4
@@ -1,5 +1,9 @@
111.2.2.0
22
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+
37* Bug fix: For the `Binary` instance, If UTF-8 decoding fails during a
48 `get`, the error is propagated via `fail` instead of an uncatchable
59 crash.
text.cabal+8−8
@@ -69,8 +69,8 @@ flag developer
6969 default: False
7070 manual: True
7171
72−flag integer-simple
73− description: Use the simple integer library instead of GMP
72+flag integer-pure
73+ description: Use the pure-Haskell integer library instead of GMP
7474
7575library
7676 c-sources: cbits/cbits.c
@@ -143,9 +143,9 @@ library
143143 ghc-options: -Werror
144144 cpp-options: -DASSERTS
145145
146− if flag(integer-simple)
147− cpp-options: -DINTEGER_SIMPLE
148− build-depends: integer-simple >= 0.1 && < 0.5
146+ if flag(integer-pure)
147+ cpp-options: -DINTEGER_PURE
148+ build-depends: integer-pure >= 1.0
149149 else
150150 cpp-options: -DINTEGER_GMP
151151 build-depends: integer-gmp >= 0.2
@@ -179,9 +179,9 @@ test-suite tests
179179 test-framework-hunit >= 0.2,
180180 test-framework-quickcheck2 >= 0.2
181181
182− if flag(integer-simple)
183− cpp-options: -DINTEGER_SIMPLE
184− build-depends: integer-simple >= 0.1 && < 0.5
182+ if flag(integer-pure)
183+ cpp-options: -DINTEGER_PURE
184+ build-depends: integer-pure >= 0.1 && < 0.5
185185 else
186186 cpp-options: -DINTEGER_GMP
187187 build-depends: integer-gmp >= 0.2