| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: ghc-scientific | Distribution: openSUSE Tumbleweed |
| Version: 0.3.10.0 | Vendor: openSUSE |
| Release: 1.1 | Build date: Wed Oct 21 17:50:56 2026 |
| Group: Unspecified | Build host: reproducible |
| Size: 364210 | Source RPM: ghc-scientific-0.3.10.0-1.1.src.rpm |
| Packager: https://bugs.opensuse.org | |
| Url: https://hackage.haskell.org/package/scientific | |
| Summary: Numbers represented using scientific notation | |
"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 'e :: 'Int''. A scientific number corresponds to the 'Fractional' number: ''fromInteger' c * 10 '^^' e'. Note that since we're using an 'Int' to represent the exponent these numbers aren't truly arbitrary precision. I intend to change the type of the exponent to 'Integer' in a future release. The main application of 'Scientific' is to be used as the target of parsing arbitrary precision numbers coming from an untrusted source. The advantages over using 'Rational' for this are that: * A 'Scientific' is more efficient to construct. Rational numbers need to be constructed using '%' which has to compute the 'gcd' of the 'numerator' and 'denominator'. * 'Scientific' is safe against numbers with huge exponents. For example: '1e1000000000 :: 'Rational'' will fill up all space and crash your program. Scientific works as expected: >>> 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') will always be bounded by the target type.
BSD-3-Clause
* Wed Oct 21 2026 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.10.0.
0.3.10.0
* Fix run-time crash (introduced in 0.3.9.0) in Eq and Ord when
comparing values with (opposite) extreme exponents.
Versions prior 0.3.9.0 instead reported invalid results.
* Document that 'normalize' may wrap around (overflow) the exponent.
Therefore current 'toDecimalDigits' doesn't work correctly,
and in turn values of 'Scientific' with exponents close to
maxBound cannot be printed reliably.
This is limitation has been there for at least a decade
(it is present in scientific-0.3.4.4, the oldest scientific
buildable with GHC-8.0).
The toDecimalDigits issue cannot be fixed without at least changing
its type signature (e.g. use Integer for a scientific exponent),
thus postponed until next major release.
* Sun Sep 27 2026 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.9.0.
0.3.9.0
* Reimplement most internal functions which used to normalize inputs
to not unnecessarily normalize them.
* Speedup 'normalize' and 'toDecimalDigits'. Now both are practically
linear in the coefficient size.
Thanks to Andrzej Rybczak for reporting these issues.
* Mon Jan 05 2026 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.8.1.
Upstream has not updated the file "changelog" since the last
release.
* Thu Dec 26 2024 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.8.0 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
* Thu Jul 04 2024 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.8.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
* Tue May 14 2024 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.8.0.
Upstream has not updated the file "changelog" since the last
release.
* Sat Oct 14 2023 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.7.0 revision 7.
Upstream has revised the Cabal build instructions on Hackage.
* Wed Oct 04 2023 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.7.0 revision 6.
Upstream has revised the Cabal build instructions on Hackage.
* Thu Mar 30 2023 Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
* Sun Mar 12 2023 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.7.0 revision 5.
Upstream has revised the Cabal build instructions on Hackage.
* Tue Feb 21 2023 Peter Simons <psimons@suse.com>
- Update scientific to version 0.3.7.0 revision 4.
Upstream has revised the Cabal build instructions on Hackage.
/usr/lib64/ghc-9.12.4/lib/libHSscientific-0.3.10.0-EYOtVLNaSqf85BlXZZ8Wkc-ghc9.12.4.so /usr/share/licenses/ghc-scientific /usr/share/licenses/ghc-scientific/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Thu Nov 12 22:37:20 2026