From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35436) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIyNL-0000of-FK for guix-patches@gnu.org; Mon, 30 Mar 2020 13:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIyNK-0001pN-4y for guix-patches@gnu.org; Mon, 30 Mar 2020 13:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51689) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIyNJ-0001pF-Qm for guix-patches@gnu.org; Mon, 30 Mar 2020 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIyNJ-0004gU-O6 for guix-patches@gnu.org; Mon, 30 Mar 2020 13:39:01 -0400 Subject: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. Resent-Message-ID: From: John Soo References: <87k1342cl1.fsf@asu.edu> <871rp97ofd.fsf@nicolasgoaziou.fr> Date: Mon, 30 Mar 2020 10:38:01 -0700 In-Reply-To: <871rp97ofd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 30 Mar 2020 19:17:10 +0200") Message-ID: <877dz1wxom.fsf@asu.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Nicolas Goaziou Cc: 40300@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi Nicolas, Nicolas Goaziou writes: > Thank you... but you forgot to send the patch. Oh, sorry. Here it is. Thanks for the speedy review! John --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-haskell-snippets.patch Content-Transfer-Encoding: quoted-printable Content-Description: add emacs-haskell-snippets >From 5ee54c3cfc32c26d8654502b05334cf0f2085764 Mon Sep 17 00:00:00 2001 From: John Soo 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 =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 6033fe7de85d <6033fe7de85d@airmail.cc> +;;; Copyright =C2=A9 2020 John Soo ;;; ;;; 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 Ema= cs 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))) --=20 2.26.0 --=-=-=--