all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets.
@ 2020-03-29  1:07 John Soo
  2020-03-30 17:17 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2020-03-29  1:07 UTC (permalink / raw)
  To: 40300

Hi Guix,

I find the haskell-snippets very helpful when writing haskell.

Thanks,

John

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets.
  2020-03-29  1:07 [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets John Soo
@ 2020-03-30 17:17 ` Nicolas Goaziou
  2020-03-30 17:38   ` John Soo
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2020-03-30 17:17 UTC (permalink / raw)
  To: John Soo; +Cc: 40300

Hello,

John Soo <jsoo1@asu.edu> writes:

> I find the haskell-snippets very helpful when writing haskell.

Thank you... but you forgot to send the patch.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets.
  2020-03-30 17:17 ` Nicolas Goaziou
@ 2020-03-30 17:38   ` John Soo
  2020-03-30 17:52     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2020-03-30 17:38 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 40300

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

Hi Nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Thank you... but you forgot to send the patch.

Oh, sorry. Here it is.

Thanks for the speedy review!

John


[-- Attachment #2: add emacs-haskell-snippets --]
[-- Type: text/x-patch, Size: 2455 bytes --]

From 5ee54c3cfc32c26d8654502b05334cf0f2085764 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Tue, 24 Mar 2020 07:21:35 -0700
Subject: [PATCH] gnu: Add emacs-haskell-snippets.

* gnu/packages/emacs-xyz.scm (emacs-haskell-snippets): New variable.
---
 gnu/packages/emacs-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9d40b8019e..f1c0114662 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -65,6 +65,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 ;;; Copyright © 2020 6033fe7de85d <6033fe7de85d@airmail.cc>
+;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -21776,3 +21777,39 @@ enables modal editing and composition of commands, too.  It combines ideas of
 other Editors like Vim or Kakoune and tries to align them with regular Emacs
 conventions.")
     (license license:gpl3+)))
+
+(define-public emacs-haskell-snippets
+  (package
+    (name "emacs-haskell-snippets")
+    (version "0.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/haskell/haskell-snippets")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0b3d7rvqvvcsp51aqfhl0zg9zg8j0p6vlfvga6jp9xc7626vh6f6"))))
+    (inputs
+     `(("emacs-yasnippet" ,emacs-yasnippet)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-snippets
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (snippets
+                     (string-append
+                      out "/share/emacs/site-lisp/snippets/haskell-mode")))
+               (mkdir-p snippets)
+               (copy-recursively "snippets/haskell-mode" snippets)
+               #t))))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/haskell/haskell-snippets")
+    (synopsis "Official collection of YASnippet Haskell snippets for Emacs")
+    (description "Haskell-Snippets is a collection of YASnippet Haskell
+snippets for Emacs.")
+    (license license:expat)))
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets.
  2020-03-30 17:38   ` John Soo
@ 2020-03-30 17:52     ` Nicolas Goaziou
  2020-03-30 19:03       ` John Soo
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2020-03-30 17:52 UTC (permalink / raw)
  To: John Soo; +Cc: 40300

Hello,

John Soo <jsoo1@asu.edu> writes:

> +(define-public emacs-haskell-snippets
> +  (package
> +    (name "emacs-haskell-snippets")
> +    (version "0.1.0")

Would it make sense to package HEAD instead. I'm looking in particular
at upstream's commit 9e41a53f8388f2a2cf2a1bb3163bc6de764099d5.

> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri
> +        (git-reference
> +         (url "https://github.com/haskell/haskell-snippets")
> +         (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> +         "0b3d7rvqvvcsp51aqfhl0zg9zg8j0p6vlfvga6jp9xc7626vh6f6"))))

Usual nitpick: please put string on the same line as `base32'.

> +    (inputs
> +     `(("emacs-yasnippet" ,emacs-yasnippet)))
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'install 'install-snippets
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (snippets
> +                     (string-append
> +                      out "/share/emacs/site-lisp/snippets/haskell-mode")))
> +               (mkdir-p snippets)
> +               (copy-recursively "snippets/haskell-mode" snippets)
> +               #t))))))
> +    (build-system emacs-build-system)

Nitpick: could you move parts in this order: build-system ->
arguments -> inputs.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets.
  2020-03-30 17:52     ` Nicolas Goaziou
@ 2020-03-30 19:03       ` John Soo
  2020-03-30 20:39         ` bug#40300: " Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: John Soo @ 2020-03-30 19:03 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 40300

[-- Attachment #1: Type: text/plain, Size: 1642 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> John Soo <jsoo1@asu.edu> writes:
>
>> +(define-public emacs-haskell-snippets
>> +  (package
>> +    (name "emacs-haskell-snippets")
>> +    (version "0.1.0")
>
> Would it make sense to package HEAD instead. I'm looking in particular
> at upstream's commit 9e41a53f8388f2a2cf2a1bb3163bc6de764099d5.

I think so. Done.

>> +    (source
>> +     (origin
>> +       (method git-fetch)
>> +       (uri
>> +        (git-reference
>> +         (url "https://github.com/haskell/haskell-snippets")
>> +         (commit version)))
>> +       (file-name (git-file-name name version))
>> +       (sha256
>> +        (base32
>> +         "0b3d7rvqvvcsp51aqfhl0zg9zg8j0p6vlfvga6jp9xc7626vh6f6"))))
>
> Usual nitpick: please put string on the same line as `base32'.

Done.

>> +    (inputs
>> +     `(("emacs-yasnippet" ,emacs-yasnippet)))
>> +    (arguments
>> +     `(#:phases
>> +       (modify-phases %standard-phases
>> +         (add-after 'install 'install-snippets
>> +           (lambda* (#:key outputs #:allow-other-keys)
>> +             (let* ((out (assoc-ref outputs "out"))
>> +                    (snippets
>> +                     (string-append
>> +                      out "/share/emacs/site-lisp/snippets/haskell-mode")))
>> +               (mkdir-p snippets)
>> +               (copy-recursively "snippets/haskell-mode" snippets)
>> +               #t))))))
>> +    (build-system emacs-build-system)
>
> Nitpick: could you move parts in this order: build-system ->
> arguments -> inputs.

Yes I can. Done.

I also changed inputs -> propagated-inputs.

Thanks again,

John


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: add emacs-haskell-snippets. --]
[-- Type: text/x-patch, Size: 2248 bytes --]

From 1984fc60cc5045c50ae9f913b13ebbc93101f731 Mon Sep 17 00:00:00 2001
From: John Soo <jsoo1@asu.edu>
Date: Tue, 24 Mar 2020 07:21:35 -0700
Subject: [PATCH] gnu: Add emacs-haskell-snippets.

* gnu/packages/emacs-xyz.scm (emacs-haskell-snippets): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c029d1ed3d..1d46f540ad 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21965,3 +21965,39 @@ enables modal editing and composition of commands, too.  It combines ideas of
 other Editors like Vim or Kakoune and tries to align them with regular Emacs
 conventions.")
     (license license:gpl3+)))
+
+(define-public emacs-haskell-snippets
+  (let ((commit "07b0f460b946fd1be26c29652cb0468b47782f3a"))
+    (package
+      (name "emacs-haskell-snippets")
+      (version (git-version "0.1.0" "0" commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/haskell/haskell-snippets")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0a7y3awi9hcyahggf0ghsdwvsmrhr9yq634wy9lkqjzrm2hqj0ci"))))
+      (build-system emacs-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'install 'install-snippets
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((out (assoc-ref outputs "out"))
+                      (snippets
+                       (string-append
+                        out "/share/emacs/site-lisp/snippets/haskell-mode")))
+                 (mkdir-p snippets)
+                 (copy-recursively "snippets/haskell-mode" snippets)
+                 #t))))))
+      (propagated-inputs
+       `(("emacs-yasnippet" ,emacs-yasnippet)))
+      (home-page "https://github.com/haskell/haskell-snippets")
+      (synopsis "Official collection of YASnippet Haskell snippets for Emacs")
+      (description "Haskell-Snippets is a collection of YASnippet Haskell
+snippets for Emacs.")
+      (license license:expat))))
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#40300: [PATCH] gnu: Add emacs-haskell-snippets.
  2020-03-30 19:03       ` John Soo
@ 2020-03-30 20:39         ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2020-03-30 20:39 UTC (permalink / raw)
  To: John Soo; +Cc: 40300-done

John Soo <jsoo1@asu.edu> writes:

> Subject: [PATCH] gnu: Add emacs-haskell-snippets.
>
> * gnu/packages/emacs-xyz.scm (emacs-haskell-snippets): New variable.

Applied as 1c2f6d66ecf70637d92cb984d0c60433ba3e41e8. I added a comment
explaing why we don't provide a release.

Thank you!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-30 20:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29  1:07 [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets John Soo
2020-03-30 17:17 ` Nicolas Goaziou
2020-03-30 17:38   ` John Soo
2020-03-30 17:52     ` Nicolas Goaziou
2020-03-30 19:03       ` John Soo
2020-03-30 20:39         ` bug#40300: " Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.