diff mbox

[4/9] gnu: Add ghc-ieee754.

Message ID 20161203104213.8135-4-david@craven.ch
State New
Headers show

Commit Message

David Craven Dec. 3, 2016, 10:42 a.m. UTC
* gnu/packages/haskell.scm (ghc-ieee754): New variable.
---
 gnu/packages/haskell.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Leo Famulari Dec. 3, 2016, 8:01 p.m. UTC | #1
On Sat, Dec 03, 2016 at 11:42:08AM +0100, David Craven wrote:
> * gnu/packages/haskell.scm (ghc-ieee754): New variable.

> +(define-public ghc-ieee754
> +  (package
> +    (name "ghc-ieee754")
> +    (version "0.7.8")

Same issue about the GitHub page appearing out of date, since it doesn't
seem to have a 0.7.8 release tag.

> +    (license license:bsd-3)))

I also noticed a 'LICENSE.Tango' file. Can you check if we need to
mention that license as well?
David Craven Dec. 10, 2016, 10:15 a.m. UTC | #2
Hi Leo!

> Same issue about the GitHub page appearing out of date, since it doesn't
> seem to have a 0.7.8 release tag.

So I checked the github pages and the version string was updated, so
the url's are still up to date. I opened an issue regarding release
tagging https://github.com/patperry/hs-ieee754/issues/18

> I also noticed a 'LICENSE.Tango' file. Can you check if we need to
> mention that license as well?

The files in the cbits subfolder are dual licensed, but bsd-3 is the
superset that applies to all files in the package. I'm not sure it's
worth bothering. WDYT?

Thank you for your feedback.
David
diff mbox

Patch

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index ed2ade1..c5d586d 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8072,4 +8072,24 @@  only those tests that failed in the last run, or to only run the tests that have
 been added since previous test run.")
   (license license:bsd-3)))
 
+(define-public ghc-ieee754
+  (package
+    (name "ghc-ieee754")
+    (version "0.7.8")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://hackage.haskell.org/package/ieee754/"
+                    "ieee754-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1zvfnnd5nm5kgr60214cdyks0kqdqyzpwk5sdh0s60yr8b7fyjny"))))
+    (build-system haskell-build-system)
+    (home-page "http://github.com/patperry/hs-ieee754")
+    (synopsis "Utilities for dealing with IEEE floating point numbers")
+    (description "Utilities for dealing with IEEE floating point numbers,
+ported from the Tango math library; approximate and exact equality comparisons
+for general types.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here