head 1.11; access; symbols pkgsrc-2023Q4:1.11.0.8 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.6 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.4 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.2 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.10.0.8 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.6 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.10.0.4 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.2 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.9.0.2 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.7.0.14 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.12 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.10 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.8 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.6 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.4 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.2 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.6.0.38 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.34 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.32 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.30 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.28 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.26 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.24 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.22 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.20 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.18 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.14 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.12 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.10 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.8 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.6 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.4 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.2 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.5.0.6 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.4 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.2 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.3.0.4 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.2 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.1.0.2 pkgsrc-2014Q2-base:1.1; locks; strict; comment @# @; 1.11 date 2023.01.25.16.33.11; author pho; state Exp; branches; next 1.10; commitid SkyChweSwvlluWaE; 1.10 date 2022.02.11.13.37.21; author pho; state Exp; branches; next 1.9; commitid 7amSRAJ4KbMxHcsD; 1.9 date 2021.10.26.10.55.44; author nia; state Exp; branches; next 1.8; commitid vzl6zVlmjiF3hjeD; 1.8 date 2021.10.07.14.28.07; author nia; state Exp; branches; next 1.7; commitid wLkpKfebF6VS3TbD; 1.7 date 2019.12.31.14.10.51; author pho; state Exp; branches; next 1.6; commitid CoLsk2GcXQlyJRQB; 1.6 date 2015.11.03.23.33.35; author agc; state Exp; branches; next 1.5; commitid vBzTXDWz0lsAFHHy; 1.5 date 2015.01.07.13.21.14; author szptvlfn; state Exp; branches; next 1.4; commitid y6CtfMbitJdCV55y; 1.4 date 2015.01.06.11.53.39; author szptvlfn; state Exp; branches; next 1.3; commitid P0IHNCuIpd4ztX4y; 1.3 date 2014.09.14.18.25.25; author szptvlfn; state Exp; branches; next 1.2; commitid XePc1LjUxq99jlQx; 1.2 date 2014.08.16.21.54.50; author szptvlfn; state Exp; branches; next 1.1; commitid POAEeuMjavUMoDMx; 1.1 date 2014.05.31.21.31.57; author szptvlfn; state Exp; branches; next ; commitid YejtamBtrGhoKJCx; desc @@ 1.11 log @math/hs-scientific: Fix build with GHC 9.4 @ text @$NetBSD: distinfo,v 1.10 2022/02/11 13:37:21 pho Exp $ BLAKE2s (scientific-0.3.7.0.tar.gz) = ab3bdb603d7aa58c5920f9ead0d4377958b08b0bba2fcfb30fa7d958052c7755 SHA512 (scientific-0.3.7.0.tar.gz) = dbd13060a6d1d101138715b4106382a78d115cff247859cb6f83aca3cdb6f6caf8a2c52d7ae99be64845c5e4a7959940bbf31df6265b15079c236f193b087865 Size (scientific-0.3.7.0.tar.gz) = 24723 bytes @ 1.10 log @Update to scientific-0.3.7.0 0.3.7.0 * Make division (/) on Scientifics slightly more efficient. * Fix the Show instance to surround negative numbers with parentheses when necessary. * Add (Template Haskell) Lift Scientific instance * Mark modules as Safe or Trustworthy (Safe Haskell). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2021/10/26 10:55:44 nia Exp $ a5 1 SHA1 (patch-scientific.cabal) = 9bcab42aed57b909438c98a7eb9fc72132178309 @ 1.9 log @math: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2021/10/07 14:28:07 nia Exp $ d3 4 a6 3 BLAKE2s (scientific-0.3.6.2.tar.gz) = d40141ef195d8c4fadb2ad136f602c1a1cd1600fe8e14ae9aa84956e8dd33a42 SHA512 (scientific-0.3.6.2.tar.gz) = 47a74524c8fb25d381adf868d823a6b6772f3f69b0b3cf9f9de015a03bc941857ef3fca1b4f8cbf23e998164e71a914e167221e753c6f32dc8644047d1ef57ee Size (scientific-0.3.6.2.tar.gz) = 23510 bytes @ 1.8 log @math: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2019/12/31 14:10:51 pho Exp $ d3 1 a3 1 RMD160 (scientific-0.3.6.2.tar.gz) = 8dd3b320db88ed7a239197ec212e221c584ecfa3 @ 1.7 log @Update to scientific-0.3.6.2 0.3.6.2 * Due to a regression introduced in 0.3.4.14 the RealFrac methods and floatingOrInteger became vulnerable to a space blowup when applied to scientifics with huge exponents. This has now been fixed again. 0.3.6.1 * Fix build on GHC < 8. 0.3.6.0 * Make the methods of the Hashable, Eq and Ord instances safe to use when applied to scientific numbers coming from untrusted sources. Previously these methods first converted their arguments to Rational before applying the operation. This is unsafe because converting a Scientific to a Rational could fill up all space and crash your program when the Scientific has a huge base10Exponent. Do note that the hash computation of the Hashable Scientific instance has been changed because of this improvement! Thanks to Tom Sydney Kerckhove (@@NorfairKing) for pushing me to fix this. * fromRational :: Rational -> Scientific now throws an error instead of diverging when applied to a repeating decimal. This does mean it will consume space linear in the number of digits of the resulting scientific. This makes "fromRational" and the other Fractional methods "recip" and "/" a bit safer to use. * To get the old unsafe but more efficient behaviour the following function was added: unsafeFromRational :: Rational -> Scientific. * Add alternatives for fromRationalRepetend: fromRationalRepetendLimited :: Int -- ^ limit -> Rational -> Either (Scientific, Rational) (Scientific, Maybe Int) and: fromRationalRepetendUnlimited :: Rational -> (Scientific, Maybe Int) Thanks to Ian Jeffries (@@seagreen) for the idea. 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 0.3.5.1 * Replace use of Vector from vector with Array from primitive. 0.3.5.0 * Export scientificP :: ReadP Scientific (Courtesy of Shlok Datye @@shlok) 0.3.4.15 * Fix build for base < 4.8. 0.3.4.14 * Some minor performance improvements. 0.3.4.13 * Support criterion-1.2 0.3.4.12 * Support base-4.10 0.3.4.11 * Support tasty-ant-xml-1.1.0 0.3.4.10 * Tighten lower bound on vector from 0.5 to 0.7 because building with vector < 0.7 results in a build error. * Move the internal modules Math.NumberTheory.Logarithms and GHC.Integer.Logarithms.Compat to their own package integer-logarithms so other people can share that code. 0.3.4.9 * Support QuickCheck-2.9. 0.3.4.8 * Make bytestring-builder's installation conditional based on a Cabal flag. 0.3.4.7 * Unconditionally export Data.ByteString.Builder.Scientific. The bytestring-builder cabal flag has been removed. Depend on bytestring-builder for backwards compatibility for GHC < 7.8. 0.3.4.6 * Made toDecimalDigits more similar to floatToDigits Previously: toDecimalDigits 0 == ([0],1) Now: toDecimalDigits 0 == ([0],0) Because: Numeric.floatToDigits 10 (0 :: Double) == ([0],0) * Introduce a special case for 0 in fromFloatDigits fromFloatDigits 0 = 0 This should fix https://github.com/bos/aeson/issues/369 0.3.4.5 * The following are all a courtesy of Oleg Grenrus (phadej): * Support GHC-8.0.1 * Support binary-0.8 * Enable Travis continuous integration 0.3.4.4 * Improved performance of toDecimalDigits by 13%. 0.3.4.3 * Fix build with integer-simple. 0.3.4.2 * Fix build on GHC-7.4. Courtesy of Adam Bergmark.. 0.3.4.1 * Fix build on GHC-7.0.4 0.3.4.0 * Added fromRationalRepetend & toRationalRepetend for safely converting from and to rationals which have a repeating decimal representation like: 1 % 28 = 0.03(571428). * Added a Binary instance. * Various performance improvements. * Support vector-0.11 * Support tasty-0.11 * Support criterion-1.1.0.0 0.3.3.8 * Support QuickCheck-2.8. 0.3.3.7 * Fixed both the Prelude Data.Scientific> reads "0.0" :: [(Data.Scientific.Scientific,String)] [(0.0,".0"),(0.0,"")] problem and the read " 8" :: Scientific fails, while read " 8" :: Double succeeds problem. Courtesy of neongreen. 0.3.3.6 * Fixed bug in the x / y method for Scientific. Since I was using the default implementation: `x * recip y` the operation would diverge when `recip y` had an infinite decimal output. This shouldn't happen when the result of / is finite again. For example: 0.6 / 0.3 should yield 2.0. This is now fixed by using the following implementation: `x / y = fromRational $ toRational x / toRational y` @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2015/11/03 23:33:35 agc Exp $ a2 1 SHA1 (scientific-0.3.6.2.tar.gz) = ae0dcfaf9f4087e6147d1acb69a7deb826b85702 @ 1.6 log @Add SHA512 digests for distfiles for math category Problems found locating distfiles: Package dfftpack: missing distfile dfftpack-20001209.tar.gz Package eispack: missing distfile eispack-20001130.tar.gz Package fftpack: missing distfile fftpack-20001130.tar.gz Package linpack: missing distfile linpack-20010510.tar.gz Package minpack: missing distfile minpack-20001130.tar.gz Package odepack: missing distfile odepack-20001130.tar.gz Package py-networkx: missing distfile networkx-1.10.tar.gz Package py-sympy: missing distfile sympy-0.7.6.1.tar.gz Package quadpack: missing distfile quadpack-20001130.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2015/01/07 13:21:14 szptvlfn Exp $ d3 4 a6 4 SHA1 (scientific-0.3.3.5.tar.gz) = 5799028096dedde65dd0ea07b5c7d8ec9d7cacb1 RMD160 (scientific-0.3.3.5.tar.gz) = 421d75491a252573079947c3578f66b73416dc0b SHA512 (scientific-0.3.3.5.tar.gz) = 29a87c20b8d6fd618de7bb35eb2d0b5ee6e2c2667b8ba5574e3a3abce90a23a49a2a7b3f8883fd6def7c701c0762d83ab80bffad142a9f9be636d98d1c56d102 Size (scientific-0.3.3.5.tar.gz) = 18196 bytes @ 1.5 log @Update to 0.3.3.5 changelog: 0.3.3.5 * Fixed bug when converting the Scientific: `scientific 0 someBigExponent` to a bounded Integral using toBoundedInteger or to a bounded RealFloat using toBoundedRealFloat. If someBigExponent was big enough to trigger the big-exponent protection the beforementioned functions didn't return 0. This is fixed by explicitly handling a coefficient of 0. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2015/01/06 11:53:39 szptvlfn Exp $ d5 1 @ 1.4 log @Update to 0.3.3.4 changelog: 0.3.3.4 * Relax upper version bounds of base and deepseq for the test suite and benchmarks. 0.3.3.3 * Add support for `deepseq-1.4`. 0.3.3.2 * Fix parsing of empty digit string (#21). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2014/09/14 18:25:25 szptvlfn Exp $ d3 3 a5 3 SHA1 (scientific-0.3.3.4.tar.gz) = 71a94db04268b50b1a298988fca65ab83c1261c4 RMD160 (scientific-0.3.3.4.tar.gz) = f407b1d8bccb034627bcbf4cb56fc3742ce42e9d Size (scientific-0.3.3.4.tar.gz) = 17700 bytes @ 1.3 log @Update to 0.3.3.1 changelog: 0.3.3.1 * Allow newer tasty, tasty-hunit and criterion @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2014/08/16 21:54:50 szptvlfn Exp $ d3 3 a5 3 SHA1 (scientific-0.3.3.1.tar.gz) = 0e35b0a6d78bfc3c42315f4530268300e00b6623 RMD160 (scientific-0.3.3.1.tar.gz) = 55fed55f062d6b79ac51ce9bea9103f878472666 Size (scientific-0.3.3.1.tar.gz) = 17647 bytes @ 1.2 log @Update to 0.3.3.0 changelog: 0.3.3.0 * Add the isFloating or isInteger predicates. Courtesy of Zejun Wu (@@watashi). * Add the toRealFloat' and toBoundedInteger functions. Courtesy of Fujimura Daisuke (@@fujimura). 0.3.2.2 * Enable package to link with integer-simple instead of integer-gmp using the -finteger-simple cabal flag. Courtesy of @@k0ral. 0.3.2.1 * Parameterize inclusion of the Data.ByteString.Builder.Scientific module using the bytestring-builder flag. Disabling this flag allows building on GHC-7.0.4 which has bytestring-0.9 installed by default. 0.3.2.0 * Add the floatingOrInteger function * Fix build on GHC-7.0.4 * More efficient and better behaving magnitude computation * Lower the number of cached magnitudes to 324 (same as GHC.Float) 0.3.1.0 * Don't normalize on construction but do it when pretty-printing instead. Also provide a manual normalize function. * Improve efficiency of toRealFloat * Added note about caching magnitudes * Dropped dependency on arithmoi * Make benchmark easier to build * Add junit XML output support (for Jenkins) 0.3.0.2 * Lower the minimal QuickCheck version. * Make sure sized exponents are generated in the QuickCheck tests. 0.3.0.1 * Fix build for bytestring-0.10.0.* 0.3.0.0 * Fix a DoS vulnerability that allowed an attacker to crash the process by sending a scientific with a huge exponent like 1e1000000000. * Fix various RealFrac methods. * Cache some powers of 10 to speed up the magnitude computation. * Normalize scientific numbers on construction. * Move the Text Builder to its own module & provide a ByteString builder * Added more documentation @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2014/05/31 21:31:57 szptvlfn Exp $ d3 3 a5 3 SHA1 (scientific-0.3.3.0.tar.gz) = 8dc6eb0ad12328992445c82b19363745d0736114 RMD160 (scientific-0.3.3.0.tar.gz) = 2457c4fda565de2ccafbb51e8d4a1e9b897225d4 Size (scientific-0.3.3.0.tar.gz) = 17182 bytes @ 1.1 log @Import scientific-0.2.0.2 as math/hs-scientific, packaged for wip. A Scientific number is an arbitrary-precision floating-point number represented using scientific notation. A scientific number with coefficient c and base10Exponent e corresponds to the Fractional number: fromInteger c * 10 ^^ e Its primary use-case is to serve as the target of parsing floating point numbers. Since the textual representation of floating point numbers use scientific notation they can be efficiently parsed to a Scientific number. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 SHA1 (scientific-0.2.0.2.tar.gz) = 4d27a20b97daf057617bac2d83c566c7629c29a1 RMD160 (scientific-0.2.0.2.tar.gz) = fc0e643024a7e86102c136ab8ff6d186bc9cf495 Size (scientific-0.2.0.2.tar.gz) = 8499 bytes @