/var/lib/ghc/package.conf.d/scientific-0.3.4.9.conf is in libghc-scientific-dev 0.3.4.9-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | name: scientific
version: 0.3.4.9
id: scientific-0.3.4.9-6oTYuCcx6H5BsTGU7D2Gk3
key: scientific-0.3.4.9-6oTYuCcx6H5BsTGU7D2Gk3
license: BSD3
maintainer: Bas van Dijk <v.dijk.bas@gmail.com>
homepage: https://github.com/basvandijk/scientific
synopsis: Numbers represented using scientific notation
description:
@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.
category: Data
author: Bas van Dijk
exposed: True
exposed-modules:
Data.ByteString.Builder.Scientific Data.Scientific
Data.Text.Lazy.Builder.Scientific
hidden-modules: Math.NumberTheory.Logarithms
GHC.Integer.Logarithms.Compat GHC.Integer.Compat Utils
abi: 83e0c538cb9b8b5f5be89ef05564d263
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/scientific-0.3.4.9-6oTYuCcx6H5BsTGU7D2Gk3
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/scientific-0.3.4.9-6oTYuCcx6H5BsTGU7D2Gk3
data-dir: /usr/share/scientific
hs-libraries: HSscientific-0.3.4.9-6oTYuCcx6H5BsTGU7D2Gk3
depends:
base-4.9.0.0 binary-0.8.3.0 bytestring-0.10.8.1 containers-0.5.7.1
deepseq-1.4.2.0 ghc-prim-0.5.0.0
hashable-1.2.4.0-EMu4H7FB10MAl6hwKw992G integer-gmp-1.0.0.1
text-1.2.2.1-5QpmrLQApEZ4Ly9nMHWY0s
vector-0.11.0.0-BEDZb5o2QOhGbIm6ky7rl6
haddock-interfaces: /usr/lib/ghc-doc/haddock/scientific-0.3.4.9/scientific.haddock
haddock-html: /usr/share/doc/libghc-scientific-doc/html/
|