The NetBSD Project

CVS log for pkgsrc/math/hs-scientific/buildlink3.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / math / hs-scientific

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 5 03:39:44 2025 UTC (12 days, 22 hours ago) by pho
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
recursive revbump after patching lang/ghc910

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Feb 2 13:05:38 2025 UTC (6 weeks, 1 day ago) by pho
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
Bump all Haskell packages after switching the default compiler.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jan 30 04:35:20 2025 UTC (6 weeks, 4 days ago) by pho
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
math/hs-scientific: update to scientific-0.3.8.0

No release notes have been provided by the upstream.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu May 9 01:32:27 2024 UTC (10 months, 1 week ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Recursive revbump after changing the default Haskell compiler

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Nov 2 06:37:14 2023 UTC (16 months, 2 weeks ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Revbump all Haskell after updating lang/ghc96

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 9 04:54:41 2023 UTC (17 months, 1 week ago) by pho
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Bump Haskell packages after updating lang/ghc94

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Feb 7 01:41:01 2023 UTC (2 years, 1 month ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
revbump all the Haskell packages after modifying the runtime system of lang/ghc94

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Feb 26 03:58:18 2022 UTC (3 years ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Feb 12 08:50:45 2022 UTC (3 years, 1 month ago) by pho
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
revbump after changing the default Haskell compiler

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Feb 11 13:37:21 2022 UTC (3 years, 1 month ago) by pho
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Update to scientific-0.3.7.0

0.3.7.0
* Make division (/) on Scientifics slightly more efficient.
* Fix the Show instance to surround negative numbers with parentheses when
  necessary.
* Add (Template Haskell) Lift Scientific instance
* Mark modules as Safe or Trustworthy (Safe Haskell).

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 18 02:48:18 2022 UTC (3 years, 1 month ago) by pho
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Bump packages that depends on GHC

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon May 3 19:01:08 2021 UTC (3 years, 10 months ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
*: Bump PKGREVISION for ghc-9.0.1

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jan 11 09:32:03 2020 UTC (5 years, 2 months ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3 lines
Remove dependency on devel/hs-text

It's now part of GHC.
Also fail and semigroups are no longer required as of GHC 8.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Dec 31 17:27:24 2019 UTC (5 years, 2 months ago) by pho
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -1 lines
Add missing dependency on devel/hs-primitive

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Dec 31 14:10:51 2019 UTC (5 years, 2 months ago) by pho
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -3 lines
Update to scientific-0.3.6.2

0.3.6.2
* Due to a regression introduced in 0.3.4.14 the RealFrac methods and
  floatingOrInteger became vulnerable to a space blowup when applied
  to scientifics with huge exponents. This has now been fixed again.

0.3.6.1
* Fix build on GHC < 8.

0.3.6.0
* Make the methods of the Hashable, Eq and Ord instances safe to use
  when applied to scientific numbers coming from untrusted
  sources. Previously these methods first converted their arguments to
  Rational before applying the operation. This is unsafe because
  converting a Scientific to a Rational could fill up all space and
  crash your program when the Scientific has a huge base10Exponent.

  Do note that the hash computation of the Hashable Scientific
  instance has been changed because of this improvement!

  Thanks to Tom Sydney Kerckhove (@NorfairKing) for pushing me to fix
  this.

* fromRational :: Rational -> Scientific now throws an error instead
  of diverging when applied to a repeating decimal. This does mean it
  will consume space linear in the number of digits of the resulting
  scientific. This makes "fromRational" and the other Fractional
  methods "recip" and "/" a bit safer to use.

* To get the old unsafe but more efficient behaviour the following
  function was added: unsafeFromRational :: Rational -> Scientific.

* Add alternatives for fromRationalRepetend:

  fromRationalRepetendLimited
      :: Int -- ^ limit
      -> Rational
      -> Either (Scientific, Rational)
            (Scientific, Maybe Int)

  and:

  fromRationalRepetendUnlimited
      :: Rational -> (Scientific, Maybe Int)

  Thanks to Ian Jeffries (@seagreen) for the idea.

0.3.5.3
* Dropped upper version bounds of dependencies because it's to much
  work to maintain.

0.3.5.2
* Remove unused ghc-prim dependency.
* Added unit tests for read and scientificP

0.3.5.1
* Replace use of Vector from vector with Array from primitive.

0.3.5.0
* Export scientificP :: ReadP Scientific
  (Courtesy of Shlok Datye @shlok)

0.3.4.15
* Fix build for base < 4.8.

0.3.4.14
* Some minor performance improvements.

0.3.4.13
* Support criterion-1.2

0.3.4.12
* Support base-4.10

0.3.4.11
* Support tasty-ant-xml-1.1.0

0.3.4.10
* Tighten lower bound on vector from 0.5 to 0.7 because building with
  vector < 0.7 results in a build error.

* Move the internal modules Math.NumberTheory.Logarithms and
  GHC.Integer.Logarithms.Compat to their own package
  integer-logarithms so other people can share that code.

0.3.4.9
* Support QuickCheck-2.9.

0.3.4.8
* Make bytestring-builder's installation conditional based on a Cabal flag.

0.3.4.7
* Unconditionally export Data.ByteString.Builder.Scientific. The
  bytestring-builder cabal flag has been removed. Depend on
  bytestring-builder for backwards compatibility for GHC < 7.8.

0.3.4.6
* Made toDecimalDigits more similar to floatToDigits

  Previously:
    toDecimalDigits 0 == ([0],1)

  Now:
    toDecimalDigits 0 == ([0],0)

  Because:
    Numeric.floatToDigits 10 (0 :: Double) == ([0],0)

* Introduce a special case for 0 in fromFloatDigits

    fromFloatDigits 0 = 0

  This should fix https://github.com/bos/aeson/issues/369

0.3.4.5
* The following are all a courtesy of Oleg Grenrus (phadej):
  * Support GHC-8.0.1
  * Support binary-0.8
  * Enable Travis continuous integration

0.3.4.4
* Improved performance of toDecimalDigits by 13%.

0.3.4.3
* Fix build with integer-simple.

0.3.4.2
* Fix build on GHC-7.4. Courtesy of Adam Bergmark..

0.3.4.1
* Fix build on GHC-7.0.4

0.3.4.0
* Added fromRationalRepetend & toRationalRepetend for safely
  converting from and to rationals which have a repeating decimal
  representation like:
  1 % 28 = 0.03(571428).
* Added a Binary instance.
* Various performance improvements.
* Support vector-0.11
* Support tasty-0.11
* Support criterion-1.1.0.0

0.3.3.8
* Support QuickCheck-2.8.

0.3.3.7
* Fixed both the

      Prelude Data.Scientific> reads "0.0" :: [(Data.Scientific.Scientific,String)]
      [(0.0,".0"),(0.0,"")]

  problem and the

      read " 8" :: Scientific fails, while read " 8" :: Double succeeds

  problem. Courtesy of neongreen.

0.3.3.6
* Fixed bug in the x / y method for Scientific. Since I was using the
  default implementation: `x * recip y` the operation would diverge
  when `recip y` had an infinite decimal output. This shouldn't happen
  when the result of / is finite again. For example: 0.6 / 0.3 should
  yield 2.0.

  This is now fixed by using the following implementation:

  `x / y = fromRational $ toRational x / toRational y`

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 10 11:49:10 2016 UTC (9 years, 2 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Bump PKGREVISION for hs-text-1.2.2.0 || hs-hashable-1.2.3.3

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Aug 2 11:27:05 2015 UTC (9 years, 7 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Bump PKGREVISION for hs-text-1.2.1.3

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 8 20:56:15 2015 UTC (9 years, 9 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Bump PKGREVISION for hs-hashable-1.2.3.2

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jun 4 20:08:59 2015 UTC (9 years, 9 months ago) by szptvlfn
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Bump PKGREVISION for hs-text-1.2.1.1

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 7 13:21:14 2015 UTC (10 years, 2 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
Update to 0.3.3.5

changelog:
0.3.3.5
    * Fixed bug when converting the Scientific:
      `scientific 0 someBigExponent` to a bounded Integral using toBoundedInteger
      or to a bounded RealFloat using toBoundedRealFloat.
      If someBigExponent was big enough to trigger the big-exponent protection
      the beforementioned functions didn't return 0.

      This is fixed by explicitly handling a coefficient of 0.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jan 6 11:53:39 2015 UTC (10 years, 2 months ago) by szptvlfn
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Update to 0.3.3.4

changelog:
0.3.3.4
    * Relax upper version bounds of base and deepseq
      for the test suite and benchmarks.

0.3.3.3
    * Add support for `deepseq-1.4`.

0.3.3.2
    * Fix parsing of empty digit string (#21).

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Dec 12 22:55:25 2014 UTC (10 years, 3 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Bump PKGREVISION for hs-text-1.2.0.3

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Dec 12 22:04:22 2014 UTC (10 years, 3 months ago) by szptvlfn
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Bump PKGREVISION for hs-text-1.2.0.2 || hs-hashable-1.2.3.0

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Sep 14 18:25:25 2014 UTC (10 years, 6 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Update to 0.3.3.1

changelog:
0.3.3.1
	*  Allow newer tasty, tasty-hunit and criterion

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Aug 29 14:08:41 2014 UTC (10 years, 6 months ago) by szptvlfn
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
make it clear what package depend on

discussed with wiz@.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Aug 16 21:54:50 2014 UTC (10 years, 7 months ago) by szptvlfn
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
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

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat May 31 21:31:57 2014 UTC (10 years, 9 months ago) by szptvlfn
Branches: MAIN
CVS tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2
Import scientific-0.2.0.2 as math/hs-scientific,
packaged for wip.

A Scientific number is an arbitrary-precision floating-point number
represented using scientific notation.

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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>