GNU bug report logs - #39105
[PATCH] gnu: Add ghc-llvm-hs and dependency

Previous Next

Package: guix-patches;

Reported by: JoJo <jo <at> jo.zone>

Date: Sun, 12 Jan 2020 19:41:01 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39105 in the body.
You can then email your comments to 39105 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Sun, 12 Jan 2020 19:41:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to JoJo <jo <at> jo.zone>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 12 Jan 2020 19:41:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: JoJo <jo <at> jo.zone>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add ghc-llvm-hs and dependency
Date: Sun, 12 Jan 2020 20:10:14 +0100
* gnu/packages/haskell-xyz.scm
(ghc-llvm-hs, ghc-llvm-hs-pure): New variables.
---
 gnu/packages/haskell-xyz.scm | 66 ++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 3a9880f58c..af507d9d43 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -54,6 +54,7 @@
   #:use-module (gnu packages haskell-web)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages llvm)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages ncurses)
@@ -6704,6 +6705,71 @@ ByteString, for types that support input and output, and for types that
 can handle infinite lists.")
     (license license:bsd-3)))
 
+(define-public ghc-llvm-hs-pure
+  (package
+    (name "ghc-llvm-hs-pure")
+    (version "9.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/llvm-hs-pure/llvm-hs-pure-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0pxb5ah8r5pzpz2ibqw3g9g1isigb4z7pbzfrwr8kmcjn74ab3kf"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
+              ("ghc-fail" ,ghc-fail)
+              ("ghc-unordered-containers" ,ghc-unordered-containers)))
+    (native-inputs `(("ghc-tasty" ,ghc-tasty)
+                     ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+                     ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
+    (home-page "http://github.com/llvm-hs/llvm-hs/")
+    (synopsis "Pure Haskell LLVM functionality (no FFI).")
+    (description "llvm-hs-pure is a set of pure Haskell types and functions
+for interacting with LLVM. It includes an ADT to represent LLVM IR. The
+llvm-hs package builds on this one with FFI bindings to LLVM, but llvm-hs-pure
+does not require LLVM to be available.")
+    (license license:bsd-3)))
+
+(define-public ghc-llvm-hs
+  (package
+    (name "ghc-llvm-hs")
+    (version "9.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/llvm-hs/llvm-hs-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
+              ("ghc-exceptions" ,ghc-exceptions)
+              ("ghc-utf8-string" ,ghc-utf8-string)
+              ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure)
+              ("llvm" ,llvm-9)))
+    (native-inputs `(("ghc-tasty" ,ghc-tasty)
+                     ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+                     ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
+                     ("ghc-quickcheck" ,ghc-quickcheck)
+                     ("ghc-temporary" ,ghc-temporary)
+                     ("ghc-pretty-show" ,ghc-pretty-show)
+                     ("ghc-temporary" ,ghc-temporary)))
+    (home-page "http://github.com/llvm-hs/llvm-hs/")
+    (synopsis "General purpose LLVM bindings")
+    (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other
+current Haskell bindings, it uses an ADT to represent LLVM IR, and so offers
+two advantages: it handles almost all of the stateful complexities of using
+the LLVM API to build IR; and it supports moving IR not only from Haskell into
+LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.")
+    (license license:bsd-3)))
+
 (define-public ghc-logging-facade
   (package
     (name "ghc-logging-facade")
-- 
2.24.1




Information forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Tue, 14 Jan 2020 21:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 39105 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: 39105 <at> debbugs.gnu.org, jo <at> jo.zone
Subject: [PATCH] gnu: Add ghc-llvm-hs and dependency
Date: Tue, 14 Jan 2020 13:26:28 -0800
Hi JoJo,

Looks good.  Thanks!

One thing you should do before this gets merged is to separate each package into one patch. One package per patch is the convention in guix.

- John



Information forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Wed, 15 Jan 2020 14:42:02 GMT) Full text and rfc822 format available.

Message #11 received at 39105 <at> debbugs.gnu.org (full text, mbox):

From: JoJo <jo <at> jo.zone>
To: 39105 <at> debbugs.gnu.org
Cc: John Soo <jsoo1 <at> asu.edu>
Subject: Re: [PATCH] gnu: Add ghc-llvm-hs and dependency
Date: Wed, 15 Jan 2020 15:41:34 +0100
Hello John,

Alright, two patches coming right up!

On Tue, Jan 14 2020, John Soo wrote:

> Hi JoJo,
>
> Looks good.  Thanks!
>
> One thing you should do before this gets merged is to separate each package into one patch. One package per patch is the convention in guix.
>
> - John




Information forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Wed, 15 Jan 2020 14:44:01 GMT) Full text and rfc822 format available.

Message #14 received at 39105 <at> debbugs.gnu.org (full text, mbox):

From: JoJo <jo <at> jo.zone>
To: 39105 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add ghc-llvm-hs-pure
Date: Wed, 15 Jan 2020 15:43:03 +0100
* gnu/packages/haskell-xyz.scm
(ghc-llvm-hs-pure): New variable.
---
 gnu/packages/haskell-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 3a9880f58c..a04e8f652e 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -6704,6 +6704,35 @@ ByteString, for types that support input and output, and for types that
 can handle infinite lists.")
     (license license:bsd-3)))
 
+(define-public ghc-llvm-hs-pure
+  (package
+    (name "ghc-llvm-hs-pure")
+    (version "9.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/llvm-hs-pure/llvm-hs-pure-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0pxb5ah8r5pzpz2ibqw3g9g1isigb4z7pbzfrwr8kmcjn74ab3kf"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
+              ("ghc-fail" ,ghc-fail)
+              ("ghc-unordered-containers" ,ghc-unordered-containers)))
+    (native-inputs `(("ghc-tasty" ,ghc-tasty)
+                     ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+                     ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
+    (home-page "http://github.com/llvm-hs/llvm-hs/")
+    (synopsis "Pure Haskell LLVM functionality (no FFI).")
+    (description "llvm-hs-pure is a set of pure Haskell types and functions
+for interacting with LLVM. It includes an ADT to represent LLVM IR. The
+llvm-hs package builds on this one with FFI bindings to LLVM, but llvm-hs-pure
+does not require LLVM to be available.")
+    (license license:bsd-3)))
+
 (define-public ghc-logging-facade
   (package
     (name "ghc-logging-facade")
-- 
2.24.1





Information forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Wed, 15 Jan 2020 14:45:02 GMT) Full text and rfc822 format available.

Message #17 received at 39105 <at> debbugs.gnu.org (full text, mbox):

From: JoJo <jo <at> jo.zone>
To: 39105 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add ghc-llvm-hs-pure
Date: Wed, 15 Jan 2020 15:43:44 +0100
* gnu/packages/haskell-xyz.scm
(ghc-llvm-hs): New variable.
---
 gnu/packages/haskell-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index a04e8f652e..af507d9d43 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -54,6 +54,7 @@
   #:use-module (gnu packages haskell-web)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages llvm)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages ncurses)
@@ -6733,6 +6734,42 @@ llvm-hs package builds on this one with FFI bindings to LLVM, but llvm-hs-pure
 does not require LLVM to be available.")
     (license license:bsd-3)))
 
+(define-public ghc-llvm-hs
+  (package
+    (name "ghc-llvm-hs")
+    (version "9.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/llvm-hs/llvm-hs-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
+              ("ghc-exceptions" ,ghc-exceptions)
+              ("ghc-utf8-string" ,ghc-utf8-string)
+              ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure)
+              ("llvm" ,llvm-9)))
+    (native-inputs `(("ghc-tasty" ,ghc-tasty)
+                     ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+                     ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
+                     ("ghc-quickcheck" ,ghc-quickcheck)
+                     ("ghc-temporary" ,ghc-temporary)
+                     ("ghc-pretty-show" ,ghc-pretty-show)
+                     ("ghc-temporary" ,ghc-temporary)))
+    (home-page "http://github.com/llvm-hs/llvm-hs/")
+    (synopsis "General purpose LLVM bindings")
+    (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other
+current Haskell bindings, it uses an ADT to represent LLVM IR, and so offers
+two advantages: it handles almost all of the stateful complexities of using
+the LLVM API to build IR; and it supports moving IR not only from Haskell into
+LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.")
+    (license license:bsd-3)))
+
 (define-public ghc-logging-facade
   (package
     (name "ghc-logging-facade")
-- 
2.24.1





Information forwarded to guix-patches <at> gnu.org:
bug#39105; Package guix-patches. (Wed, 15 Jan 2020 14:49:01 GMT) Full text and rfc822 format available.

Message #20 received at 39105 <at> debbugs.gnu.org (full text, mbox):

From: JoJo <jo <at> jo.zone>
To: 39105 <at> debbugs.gnu.org
Subject: Re: [PATCH 2/2] gnu: Add ghc-llvm-hs-pure
Date: Wed, 15 Jan 2020 15:47:49 +0100
Sorry, screwed up the commit title / subject message of the second
patch there. It's supposed to be "[PATCH 2/2] gnu: Add ghc-llvm-hs".

On Wed, Jan 15 2020, JoJo wrote:

> * gnu/packages/haskell-xyz.scm
> (ghc-llvm-hs): New variable.
> ---
>  gnu/packages/haskell-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 37 insertions(+)
>
> diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
> index a04e8f652e..af507d9d43 100644
> --- a/gnu/packages/haskell-xyz.scm
> +++ b/gnu/packages/haskell-xyz.scm
> @@ -54,6 +54,7 @@
>    #:use-module (gnu packages haskell-web)
>    #:use-module (gnu packages libffi)
>    #:use-module (gnu packages linux)
> +  #:use-module (gnu packages llvm)
>    #:use-module (gnu packages lua)
>    #:use-module (gnu packages maths)
>    #:use-module (gnu packages ncurses)
> @@ -6733,6 +6734,42 @@ llvm-hs package builds on this one with FFI bindings to LLVM, but llvm-hs-pure
>  does not require LLVM to be available.")
>      (license license:bsd-3)))
>  
> +(define-public ghc-llvm-hs
> +  (package
> +    (name "ghc-llvm-hs")
> +    (version "9.0.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://hackage.haskell.org/package/llvm-hs/llvm-hs-"
> +             version
> +             ".tar.gz"))
> +       (sha256
> +        (base32
> +         "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00"))))
> +    (build-system haskell-build-system)
> +    (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
> +              ("ghc-exceptions" ,ghc-exceptions)
> +              ("ghc-utf8-string" ,ghc-utf8-string)
> +              ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure)
> +              ("llvm" ,llvm-9)))
> +    (native-inputs `(("ghc-tasty" ,ghc-tasty)
> +                     ("ghc-tasty-hunit" ,ghc-tasty-hunit)
> +                     ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
> +                     ("ghc-quickcheck" ,ghc-quickcheck)
> +                     ("ghc-temporary" ,ghc-temporary)
> +                     ("ghc-pretty-show" ,ghc-pretty-show)
> +                     ("ghc-temporary" ,ghc-temporary)))
> +    (home-page "http://github.com/llvm-hs/llvm-hs/")
> +    (synopsis "General purpose LLVM bindings")
> +    (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other
> +current Haskell bindings, it uses an ADT to represent LLVM IR, and so offers
> +two advantages: it handles almost all of the stateful complexities of using
> +the LLVM API to build IR; and it supports moving IR not only from Haskell into
> +LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.")
> +    (license license:bsd-3)))
> +
>  (define-public ghc-logging-facade
>    (package
>      (name "ghc-logging-facade")
> -- 
> 2.24.1




Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Thu, 23 Jan 2020 21:45:01 GMT) Full text and rfc822 format available.

Notification sent to JoJo <jo <at> jo.zone>:
bug acknowledged by developer. (Thu, 23 Jan 2020 21:45:02 GMT) Full text and rfc822 format available.

Message #25 received at 39105-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: JoJo <jo <at> jo.zone>
Cc: 39105-done <at> debbugs.gnu.org
Subject: Re: [bug#39105] [PATCH 1/2] gnu: Add ghc-llvm-hs-pure
Date: Thu, 23 Jan 2020 16:43:59 -0500
[Message part 1 (text/plain, inline)]
On Wed, Jan 15, 2020 at 03:43:03PM +0100, JoJo wrote:
> * gnu/packages/haskell-xyz.scm
> (ghc-llvm-hs-pure): New variable.

Thanks! I cleaned up both patches according to `guix lint` (mostly...)
and made a few other cosmetic changes, as well as some minor
clarifications to the synopses and descriptions.

Pushed as e3ee802379f33aa3fae0a40be33fe6a4f2ae34d2

Thanks again for the contribution!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 21 Feb 2020 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.