Import hs-scientific, a space efficient and arbitrary precision

scientific number type.

New dependency for an upcoming databases/hs-postgresql-simple update.

From maintainer David Schaefer
This commit is contained in:
dcoppa 2014-10-14 13:06:02 +00:00
parent 57fc867c06
commit cce8282d30
4 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/10/14 13:06:02 dcoppa Exp $
COMMENT = scientific number type
DISTNAME = scientific-0.3.3.1
CATEGORIES = devel
HOMEPAGE = https://github.com/basvandijk/scientific
MAINTAINER = David Schaefer <dawedawe@gmx.de>
# BSD3
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/ghc
MODGHC_BUILD = cabal hackage haddock register
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/hs-hashable>=1.1.2,<1.3 \
devel/hs-text>=0.8,<1.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (ghc/scientific-0.3.3.1.tar.gz) = C/DcRLhBmsYY3NhEqlzfgmce3z43fmP1DwsegSRLL9w=
SIZE (ghc/scientific-0.3.3.1.tar.gz) = 17647

View File

@ -0,0 +1,11 @@
Data.Scientific provides a space efficient and arbitrary precision
scientific number type.
Scientific numbers are represented using scientific notation. It uses a
coefficient c :: Integer and a base-10 exponent e :: Int (do note that
since we're using an Int to represent the exponent these numbers aren't
truly arbitrary precision). A scientific number corresponds to the
Fractional number: fromInteger c * 10 ^^ e.
The main application of Scientific is to be used as the target of
parsing arbitrary precision numbers coming from an untrusted source.

View File

@ -0,0 +1,45 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/10/14 13:06:02 dcoppa Exp $
lib/ghc/${DISTNAME}/
lib/ghc/${DISTNAME}/Data/
lib/ghc/${DISTNAME}/Data/ByteString/
lib/ghc/${DISTNAME}/Data/ByteString/Builder/
lib/ghc/${DISTNAME}/Data/ByteString/Builder/Scientific.hi
lib/ghc/${DISTNAME}/Data/ByteString/Builder/Scientific.p_hi
lib/ghc/${DISTNAME}/Data/Scientific.hi
lib/ghc/${DISTNAME}/Data/Scientific.p_hi
lib/ghc/${DISTNAME}/Data/Text/
lib/ghc/${DISTNAME}/Data/Text/Lazy/
lib/ghc/${DISTNAME}/Data/Text/Lazy/Builder/
lib/ghc/${DISTNAME}/Data/Text/Lazy/Builder/Scientific.hi
lib/ghc/${DISTNAME}/Data/Text/Lazy/Builder/Scientific.p_hi
lib/ghc/${DISTNAME}/HS${DISTNAME}.o
lib/ghc/${DISTNAME}/Math/
lib/ghc/${DISTNAME}/Math/NumberTheory/
lib/ghc/${DISTNAME}/Math/NumberTheory/Logarithms.hi
lib/ghc/${DISTNAME}/Math/NumberTheory/Logarithms.p_hi
lib/ghc/${DISTNAME}/libHS${DISTNAME}.a
lib/ghc/${DISTNAME}/libHS${DISTNAME}_p.a
lib/ghc/${DISTNAME}/register.sh
share/doc/hs-${DISTNAME}/
share/doc/hs-${DISTNAME}/LICENSE
share/doc/hs-${DISTNAME}/html/
share/doc/hs-${DISTNAME}/html/Data-ByteString-Builder-Scientific.html
share/doc/hs-${DISTNAME}/html/Data-Scientific.html
share/doc/hs-${DISTNAME}/html/Data-Text-Lazy-Builder-Scientific.html
share/doc/hs-${DISTNAME}/html/doc-index.html
share/doc/hs-${DISTNAME}/html/frames.html
share/doc/hs-${DISTNAME}/html/haddock-util.js
share/doc/hs-${DISTNAME}/html/hslogo-16.png
share/doc/hs-${DISTNAME}/html/index-frames.html
share/doc/hs-${DISTNAME}/html/index.html
share/doc/hs-${DISTNAME}/html/mini_Data-ByteString-Builder-Scientific.html
share/doc/hs-${DISTNAME}/html/mini_Data-Scientific.html
share/doc/hs-${DISTNAME}/html/mini_Data-Text-Lazy-Builder-Scientific.html
share/doc/hs-${DISTNAME}/html/minus.gif
share/doc/hs-${DISTNAME}/html/ocean.css
share/doc/hs-${DISTNAME}/html/plus.gif
share/doc/hs-${DISTNAME}/html/scientific.haddock
share/doc/hs-${DISTNAME}/html/synopsis.png
@exec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/register.sh -v0
@unexec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/unregister.sh -v0 --force
lib/ghc/${DISTNAME}/unregister.sh