scientific 0.3.5.2 → 0.3.5.3
raw patch · 3 files changed
+38/−27 lines, 3 filesdep ~QuickCheckdep ~basedep ~binary
Dependency ranges changed: QuickCheck, base, binary, bytestring, containers, criterion, deepseq, hashable, integer-logarithms, primitive, smallcheck, tasty, tasty-ant-xml, tasty-hunit, tasty-quickcheck, tasty-smallcheck, text
Files
- changelog +4/−0
- scientific.cabal +33/−26
- src/Data/Scientific.hs +1/−1
changelog view
@@ -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
scientific.cabal view
@@ -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 @@ @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 @@ 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 @@ 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 @@ 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 @@ 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
src/Data/Scientific.hs view
@@ -181,7 +181,7 @@ 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