/var/lib/ghc/package.conf.d/scientific-0.3.4.4.conf is in libghc-scientific-dev 0.3.4.4-1build1.
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 61 62 63 64 | name: scientific
version: 0.3.4.4
id: scientific-0.3.4.4-ad7a1961c108e1f16b5a5fcaa26862eb
key: scien_ElQmPPzkEWV9d7mRH2lb4Y
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.Scientific Data.Text.Lazy.Builder.Scientific
Data.ByteString.Builder.Scientific
hidden-modules: Math.NumberTheory.Logarithms
GHC.Integer.Logarithms.Compat GHC.Integer.Compat Utils
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/scientific-0.3.4.4-ElQmPPzkEWV9d7mRH2lb4Y
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/scientific-0.3.4.4-ElQmPPzkEWV9d7mRH2lb4Y
data-dir: /usr/share/scientific
hs-libraries: HSscientific-0.3.4.4-ElQmPPzkEWV9d7mRH2lb4Y
depends:
base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
binary-0.7.5.0-bf6a937522bb8cec5d00218470f28789
bytestring-0.10.6.0-9a873bcf33d6ce2fd2698ce69e2c1c66
containers-0.5.6.2-59326c33e30ec8f6afd574cbac625bbb
deepseq-1.4.1.1-614b63b36dd6e29d2b35afff57c25311
ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e
hashable-1.2.3.3-ce7af8ca3ebd83133b0e846c245dc9e2
integer-gmp-1.0.0.0-3c8c40657a9870f5c33be17496806d8d
text-1.2.2.0-2c09cfae3213a07ad08b7cc1c9a4bb52
vector-0.11.0.0-c6a21b92685f6fef26c6c5da6982f3c6
haddock-interfaces: /usr/lib/ghc-doc/haddock/scientific-0.3.4.4/scientific.haddock
haddock-html: /usr/share/doc/libghc-scientific-doc/html/
|