summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasVanDijk <>2018-03-14 20:16:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-03-14 20:16:00 (GMT)
commit32e2f7cf0c2bdaffb6d11fd69e5b7eaf92b76504 (patch)
tree97e71613463c5c9693b41e1acfacd95650b24fa2
parent511deb5208233abf51a499e55de05735f05836ae (diff)
version 0.3.5.30.3.5.3
-rw-r--r--changelog4
-rw-r--r--scientific.cabal59
-rw-r--r--src/Data/Scientific.hs2
3 files changed, 38 insertions, 27 deletions
diff --git a/changelog b/changelog
index 8815853..2455076 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,7 @@
+0.3.5.3
+ * Dropped upper version bounds of dependencies
+ because it's to much work to maintain.
+
0.3.5.2
* Remove unused ghc-prim dependency.
* Added unit tests for read and scientificP
diff --git a/scientific.cabal b/scientific.cabal
index d967212..a82d1b6 100644
--- a/scientific.cabal
+++ b/scientific.cabal
@@ -1,8 +1,8 @@
name: scientific
-version: 0.3.5.2
+version: 0.3.5.3
synopsis: Numbers represented using scientific notation
description:
- @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers are
+ "Data.Scientific" provides the number type 'Scientific'. Scientific numbers are
arbitrary precision and space efficient. They are represented using
<http://en.wikipedia.org/wiki/Scientific_notation scientific notation>.
The implementation uses a coefficient @c :: 'Integer'@ and a base-10 exponent
@@ -25,8 +25,8 @@ description:
@1e1000000000 :: 'Rational'@ will fill up all space and crash your
program. Scientific works as expected:
.
- > > read "1e1000000000" :: Scientific
- > 1.0e1000000000
+ >>> read "1e1000000000" :: Scientific
+ 1.0e1000000000
.
* Also, the space usage of converting scientific numbers with huge exponents to
@'Integral's@ (like: 'Int') or @'RealFloat's@ (like: 'Double' or 'Float')
@@ -45,6 +45,13 @@ cabal-version: >=1.10
extra-source-files:
changelog
+Tested-With: GHC == 7.6.3
+ , GHC == 7.8.4
+ , GHC == 7.10.3
+ , GHC == 8.0.2
+ , GHC == 8.2.2
+ , GHC == 8.4.1
+
source-repository head
type: git
location: git://github.com/basvandijk/scientific.git
@@ -66,20 +73,20 @@ library
Utils
other-extensions: DeriveDataTypeable, BangPatterns
ghc-options: -Wall
- build-depends: base >= 4.3 && < 4.11
- , integer-logarithms >= 1 && <1.1
- , deepseq >= 1.3 && < 1.5
- , text >= 0.8 && < 1.3
- , hashable >= 1.1.2 && < 1.3
- , primitive >= 0.1 && < 0.7
- , containers >= 0.1 && < 0.6
- , binary >= 0.4.1 && < 0.9
+ build-depends: base >= 4.3 && < 5
+ , integer-logarithms >= 1
+ , deepseq >= 1.3
+ , text >= 0.8
+ , hashable >= 1.1.2
+ , primitive >= 0.1
+ , containers >= 0.1
+ , binary >= 0.4.1
if flag(bytestring-builder)
build-depends: bytestring >= 0.9 && < 0.10.4
, bytestring-builder >= 0.10.4 && < 0.11
else
- build-depends: bytestring >= 0.10.4 && < 0.11
+ build-depends: bytestring >= 0.10.4
if flag(integer-simple)
build-depends: integer-simple
@@ -97,22 +104,22 @@ test-suite test-scientific
ghc-options: -Wall
build-depends: scientific
- , base >= 4.3 && < 4.11
- , binary >= 0.4.1 && < 0.9
- , tasty >= 0.5 && < 0.12
- , tasty-ant-xml >= 1.0 && < 1.2
- , tasty-hunit >= 0.8 && < 0.10
- , tasty-smallcheck >= 0.2 && < 0.9
- , tasty-quickcheck >= 0.8 && < 0.10
- , smallcheck >= 1.0 && < 1.2
- , QuickCheck >= 2.5 && < 2.11
- , text >= 0.8 && < 1.3
+ , base >= 4.3 && < 5
+ , binary >= 0.4.1
+ , tasty >= 0.5
+ , tasty-ant-xml >= 1.0
+ , tasty-hunit >= 0.8
+ , tasty-smallcheck >= 0.2
+ , tasty-quickcheck >= 0.8
+ , smallcheck >= 1.0
+ , QuickCheck >= 2.5
+ , text >= 0.8
if flag(bytestring-builder)
build-depends: bytestring >= 0.9 && < 0.10.4
, bytestring-builder >= 0.10.4 && < 0.11
else
- build-depends: bytestring >= 0.10.4 && < 0.11
+ build-depends: bytestring >= 0.10.4
benchmark bench-scientific
type: exitcode-stdio-1.0
@@ -121,5 +128,5 @@ benchmark bench-scientific
default-language: Haskell2010
ghc-options: -O2
build-depends: scientific
- , base >= 4.3 && < 4.11
- , criterion >= 0.5 && < 1.3
+ , base >= 4.3 && < 5
+ , criterion >= 0.5
diff --git a/src/Data/Scientific.hs b/src/Data/Scientific.hs
index 02e338b..ff59971 100644
--- a/src/Data/Scientific.hs
+++ b/src/Data/Scientific.hs
@@ -181,7 +181,7 @@ instance Binary Scientific where
put (Scientific c e) = do
put c
-- In the future I intend to change the type of the base10Exponent e from
- -- Int to Integer. To support backward compatability I already convert e
+ -- Int to Integer. To support backward compatibility I already convert e
-- to Integer here:
put $ toInteger e