name:                 scientific
version:              0.3.8.0
visibility:           public
id:                   scientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z
key:                  scientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z
license:              BSD-3-Clause
maintainer:           Bas van Dijk <v.dijk.bas@gmail.com>
author:               Bas van Dijk
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
abi:                  8b57445472aa5d30fe401971fb1c0212
exposed:              True
exposed-modules:
    Data.ByteString.Builder.Scientific Data.Scientific
    Data.Text.Lazy.Builder.Scientific

hidden-modules:       GHC.Integer.Compat Utils
import-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z

library-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z

library-dirs-static:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z

dynamic-library-dirs: /usr/pkg/lib/x86_64-netbsd-ghc-9.10.1
data-dir:             /usr/pkg/share/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0
hs-libraries:         HSscientific-0.3.8.0-6l8Y8xLgYTW2dohMP28D2Z
depends:
    base-4.20.0.0-inplace binary-0.8.9.2-inplace
    bytestring-0.12.1.0-inplace containers-0.7-inplace
    deepseq-1.5.0.0-inplace hashable-1.5.0.0-93vVlDWTvOTF1kJlBpPOXB
    integer-logarithms-1.0.4-JD9HzvgporW5gmGgOOWoDj
    primitive-0.9.0.0-E3mDWyaMF4OIki7z5jah63
    template-haskell-2.22.0.0-inplace text-2.1.1-inplace

haddock-interfaces:
    /usr/pkg/share/doc/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0/html/scientific.haddock

haddock-html:
    /usr/pkg/share/doc/x86_64-netbsd-ghc-9.10.1/scientific-0.3.8.0/html
