ghc-scientific-0.3.6.2-lp151.1.2.x86_64.rpm


Advertisement

Description

ghc-scientific - Numbers represented using scientific notation

Property Value
Distribution openSUSE Leap 15.1
Repository openSUSE Oss all
Package filename ghc-scientific-0.3.6.2-lp151.1.2.x86_64.rpm
Package name ghc-scientific
Package version 0.3.6.2
Package release lp151.1.2
Package architecture x86_64
Package type rpm
Category Development/Libraries/Haskell
Homepage https://hackage.haskell.org/package/scientific
License BSD-3-Clause
Maintainer -
Download size 76.85 KB
Installed size 350.96 KB
"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.

Alternatives

Package Version Architecture Repository
ghc-scientific - - -

Requires

Name Value
libHSarray-0.5.3.0-ghc8.6.4.so()(64bit) -
libHSbase-4.12.0.0-ghc8.6.4.so()(64bit) -
libHSbinary-0.8.6.0-ghc8.6.4.so()(64bit) -
libHSbytestring-0.10.8.2-ghc8.6.4.so()(64bit) -
libHScontainers-0.6.0.1-ghc8.6.4.so()(64bit) -
libHSdeepseq-1.4.4.0-ghc8.6.4.so()(64bit) -
libHSghc-prim-0.5.3-ghc8.6.4.so()(64bit) -
libHShashable-1.2.7.0-CWI8VZuQTAYWIQTQQtqCV-ghc8.6.4.so()(64bit) -
libHSinteger-gmp-1.0.2.0-ghc8.6.4.so()(64bit) -
libHSinteger-logarithms-1.0.2.2-IT1M1moCo0mIobW8LfdrSC-ghc8.6.4.so()(64bit) -
libHSprimitive-0.6.4.0-ILgywxtLpvnAOlEISPpP5b-ghc8.6.4.so()(64bit) -
libHStext-1.2.3.1-ghc8.6.4.so()(64bit) -
libHStransformers-0.5.6.2-ghc8.6.4.so()(64bit) -
libatomic.so.1()(64bit) -
libc.so.6(GLIBC_2.14)(64bit) -
libgmp.so.10()(64bit) -
libm.so.6()(64bit) -
libm.so.6(GLIBC_2.2.5)(64bit) -

Provides

Name Value
ghc-scientific = 0.3.6.2-lp151.1.2
ghc-scientific(x86-64) = 0.3.6.2-lp151.1.2
libHSscientific-0.3.6.2-2haTAfazCkMHrnOSSHjWsD-ghc8.6.4.so()(64bit) -

Download

Type URL
Mirror widehat.opensuse.org
Binary Package ghc-scientific-0.3.6.2-lp151.1.2.x86_64.rpm
Source Package ghc-scientific-0.3.6.2-lp151.1.2.src.rpm

Install Howto

Install ghc-scientific rpm package:

# zypper install ghc-scientific

Files

Path
/usr/lib64/ghc-8.6.4/scientific-0.3.6.2-2haTAfazCkMHrnOSSHjWsD/libHSscientific-0.3.6.2-2haTAfazCkMHrnOSSHjWsD-ghc8.6.4.so
/usr/share/licenses/ghc-scientific/LICENSE

Changelog

2018-10-20 - Peter Simons <psimons@suse.com>
- Use https URL to refer to bugs.opensuse.org.
2018-07-18 - psimons@suse.com
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
2018-05-14 - psimons@suse.com
- Update scientific to version 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.
* Fix build on GHC < 8.
* 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.
* Dropped upper version bounds of dependencies
because it's to much work to maintain.
2017-07-11 - psimons@suse.com
- Update to version 0.3.5.1.
2017-07-03 - psimons@suse.com
- Update to version 0.3.4.15 revision 2.
2017-06-12 - psimons@suse.com
- Update to version 0.3.4.15.
2017-05-31 - psimons@suse.com
- Update to version 0.3.4.13.
2017-04-19 - psimons@suse.com
- Update to version 0.3.4.12 with cabal2obs.
2017-04-04 - psimons@suse.com
- Update to version 0.3.4.11 with cabal2obs.
2017-02-12 - psimons@suse.com
- Update to version 0.3.4.10 with cabal2obs.

See Also

Package Description
ghc-scientific-devel-0.3.6.2-lp151.1.2.x86_64.rpm Haskell scientific library development files
ghc-semigroupoids-5.3.2-lp151.1.3.x86_64.rpm Semigroupoids: Category sans id
ghc-semigroupoids-devel-5.3.2-lp151.1.3.x86_64.rpm Haskell semigroupoids library development files
ghc-semigroups-0.18.5-lp151.1.2.x86_64.rpm Anything that associates
ghc-semigroups-devel-0.18.5-lp151.1.2.x86_64.rpm Haskell semigroups library development files
ghc-setenv-0.1.1.3-lp151.3.2.x86_64.rpm A cross-platform library for setting environment variables
ghc-setenv-devel-0.1.1.3-lp151.3.2.x86_64.rpm Haskell setenv library development files
ghc-setlocale-1.0.0.8-lp151.1.2.x86_64.rpm Haskell bindings to setlocale
ghc-setlocale-devel-1.0.0.8-lp151.1.2.x86_64.rpm Haskell setlocale library development files
ghc-shelly-1.8.1-lp151.1.2.x86_64.rpm Shell-like (systems) programming in Haskell
ghc-shelly-devel-1.8.1-lp151.1.2.x86_64.rpm Haskell shelly library development files
ghc-silently-1.2.5-lp151.3.2.x86_64.rpm Prevent or capture writing to stdout and other handles
ghc-silently-devel-1.2.5-lp151.3.2.x86_64.rpm Haskell silently library development files
ghc-skylighting-0.7.6-lp151.1.2.x86_64.rpm Syntax highlighting library
ghc-skylighting-core-0.7.6-lp151.1.2.x86_64.rpm Syntax highlighting library
Advertisement
Advertisement