summaryrefslogtreecommitdiff
path: root/math/hs-scientific
diff options
context:
space:
mode:
authorszptvlfn <szptvlfn@pkgsrc.org>2014-08-16 21:54:50 +0000
committerszptvlfn <szptvlfn@pkgsrc.org>2014-08-16 21:54:50 +0000
commitb42a1d28c0da9482c488ca13910d5b84590fc976 (patch)
treea222e3c30c60195bbf06180ef268a59942a23e6b /math/hs-scientific
parent442255420c0e982294c55814e22a4ac0c33c0827 (diff)
downloadpkgsrc-b42a1d28c0da9482c488ca13910d5b84590fc976.tar.gz
Update to 0.3.3.0
changelog: 0.3.3.0 * Add the isFloating or isInteger predicates. Courtesy of Zejun Wu (@watashi). * Add the toRealFloat' and toBoundedInteger functions. Courtesy of Fujimura Daisuke (@fujimura). 0.3.2.2 * Enable package to link with integer-simple instead of integer-gmp using the -finteger-simple cabal flag. Courtesy of @k0ral. 0.3.2.1 * Parameterize inclusion of the Data.ByteString.Builder.Scientific module using the bytestring-builder flag. Disabling this flag allows building on GHC-7.0.4 which has bytestring-0.9 installed by default. 0.3.2.0 * Add the floatingOrInteger function * Fix build on GHC-7.0.4 * More efficient and better behaving magnitude computation * Lower the number of cached magnitudes to 324 (same as GHC.Float) 0.3.1.0 * Don't normalize on construction but do it when pretty-printing instead. Also provide a manual normalize function. * Improve efficiency of toRealFloat * Added note about caching magnitudes * Dropped dependency on arithmoi * Make benchmark easier to build * Add junit XML output support (for Jenkins) 0.3.0.2 * Lower the minimal QuickCheck version. * Make sure sized exponents are generated in the QuickCheck tests. 0.3.0.1 * Fix build for bytestring-0.10.0.* 0.3.0.0 * Fix a DoS vulnerability that allowed an attacker to crash the process by sending a scientific with a huge exponent like 1e1000000000. * Fix various RealFrac methods. * Cache some powers of 10 to speed up the magnitude computation. * Normalize scientific numbers on construction. * Move the Text Builder to its own module & provide a ByteString builder * Added more documentation
Diffstat (limited to 'math/hs-scientific')
-rw-r--r--math/hs-scientific/DESCR15
-rw-r--r--math/hs-scientific/Makefile4
-rw-r--r--math/hs-scientific/PLIST9
-rw-r--r--math/hs-scientific/buildlink3.mk4
-rw-r--r--math/hs-scientific/distinfo8
5 files changed, 23 insertions, 17 deletions
diff --git a/math/hs-scientific/DESCR b/math/hs-scientific/DESCR
index 2e07c7172bc..845c163d245 100644
--- a/math/hs-scientific/DESCR
+++ b/math/hs-scientific/DESCR
@@ -1,9 +1,8 @@
-A Scientific number is an arbitrary-precision floating-point number
-represented using scientific notation.
+Data.Scientific provides a space efficient and arbitrary precision
+scientific number type.
-A scientific number with coefficient c and base10Exponent e corresponds to
-the Fractional number: fromInteger c * 10 ^^ e
-
-Its primary use-case is to serve as the target of parsing floating point
-numbers. Since the textual representation of floating point numbers use
-scientific notation they can be efficiently parsed to a Scientific number.
+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.
diff --git a/math/hs-scientific/Makefile b/math/hs-scientific/Makefile
index 7188f835d73..97d88aa8771 100644
--- a/math/hs-scientific/Makefile
+++ b/math/hs-scientific/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2014/05/31 21:31:57 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.2 2014/08/16 21:54:50 szptvlfn Exp $
-DISTNAME= scientific-0.2.0.2
+DISTNAME= scientific-0.3.3.0
CATEGORIES= math
MAINTAINER= szptvlfn@NetBSD.org
diff --git a/math/hs-scientific/PLIST b/math/hs-scientific/PLIST
index 42999e68799..dc54cd14d92 100644
--- a/math/hs-scientific/PLIST
+++ b/math/hs-scientific/PLIST
@@ -1,17 +1,24 @@
-@comment $NetBSD: PLIST,v 1.1 2014/05/31 21:31:57 szptvlfn Exp $
+@comment $NetBSD: PLIST,v 1.2 2014/08/16 21:54:50 szptvlfn Exp $
+lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Builder/Scientific.hi
lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/Data/Scientific.hi
+lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/Data/Text/Lazy/Builder/Scientific.hi
lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/HSscientific-${PKGVERSION}.o
+lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/Math/NumberTheory/Logarithms.hi
lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/libHSscientific-${PKGVERSION}.a
lib/scientific-${PKGVERSION}/${HASKELL_VERSION}/package-description
share/doc/scientific-${PKGVERSION}/LICENSE
+${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/Data-ByteString-Builder-Scientific.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/Data-Scientific.html
+${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/Data-Text-Lazy-Builder-Scientific.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/doc-index.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/frames.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/haddock-util.js
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/hslogo-16.png
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/index-frames.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/index.html
+${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/mini_Data-ByteString-Builder-Scientific.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/mini_Data-Scientific.html
+${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/mini_Data-Text-Lazy-Builder-Scientific.html
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/minus.gif
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/ocean.css
${PLIST.doc}share/doc/scientific-${PKGVERSION}/html/plus.gif
diff --git a/math/hs-scientific/buildlink3.mk b/math/hs-scientific/buildlink3.mk
index a55f8d539aa..33f60fe85de 100644
--- a/math/hs-scientific/buildlink3.mk
+++ b/math/hs-scientific/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2014/05/31 21:31:57 szptvlfn Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2014/08/16 21:54:50 szptvlfn Exp $
BUILDLINK_TREE+= hs-scientific
.if !defined(HS_SCIENTIFIC_BUILDLINK3_MK)
HS_SCIENTIFIC_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.hs-scientific+= hs-scientific>=0.2.0
+BUILDLINK_API_DEPENDS.hs-scientific+= hs-scientific>=0.3.3
BUILDLINK_PKGSRCDIR.hs-scientific?= ../../math/hs-scientific
.include "../../devel/hs-hashable/buildlink3.mk"
diff --git a/math/hs-scientific/distinfo b/math/hs-scientific/distinfo
index 0559257a0f3..b778dcbc4e9 100644
--- a/math/hs-scientific/distinfo
+++ b/math/hs-scientific/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2014/05/31 21:31:57 szptvlfn Exp $
+$NetBSD: distinfo,v 1.2 2014/08/16 21:54:50 szptvlfn Exp $
-SHA1 (scientific-0.2.0.2.tar.gz) = 4d27a20b97daf057617bac2d83c566c7629c29a1
-RMD160 (scientific-0.2.0.2.tar.gz) = fc0e643024a7e86102c136ab8ff6d186bc9cf495
-Size (scientific-0.2.0.2.tar.gz) = 8499 bytes
+SHA1 (scientific-0.3.3.0.tar.gz) = 8dc6eb0ad12328992445c82b19363745d0736114
+RMD160 (scientific-0.3.3.0.tar.gz) = 2457c4fda565de2ccafbb51e8d4a1e9b897225d4
+Size (scientific-0.3.3.0.tar.gz) = 17182 bytes