From unknown Mon Aug 18 00:07:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40300 <40300@debbugs.gnu.org> To: bug#40300 <40300@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add emacs-haskell-snippets. Reply-To: bug#40300 <40300@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:07:06 +0000 retitle 40300 [PATCH] gnu: Add emacs-haskell-snippets. reassign 40300 guix-patches submitter 40300 John Soo severity 40300 normal tag 40300 patch thanks From jsoo1@asu.edu Sat Mar 28 21:07:27 2020 Received: (at submit) by debbugs.gnu.org; 30 Mar 2020 02:35:34 +0000 Received: from lists.gnu.org ([209.51.188.17]:35365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIMQB-0005e6-LI for submit@debbugs.gnu.org; Sat, 28 Mar 2020 21:07:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52647) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIMQA-00077G-NQ for guix-patches@gnu.org; Sat, 28 Mar 2020 21:07:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIMQ9-0004WJ-Lc for guix-patches@gnu.org; Sat, 28 Mar 2020 21:07:26 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:44079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIMQ9-0004Vu-GT for guix-patches@gnu.org; Sat, 28 Mar 2020 21:07:25 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 142so6773202pgf.11 for ; Sat, 28 Mar 2020 18:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=mIcTewRZQqrNfMZMMD9LmZeGovOWZeGlFfZQol52MFU=; b=W2kewtH3FRC/+FJzblNUsuWExy8rOfxvK4InMzwK6xhemZrQd/ltfktQ2sYz3Nr5fQ kmpLVMUNAa3vUWO5zYecFHswQE8VDUF/RvrbHmikxyMf11BsESHrEkxqQoZ6xJglhGk5 Attz91T27hXHsyJOzdBz3yJCKuOfFgq1XoC24hz9xSpYquIGm4IccaR8I+4uTTB7vf6J 8+fPyiIcCy1KgT4MNviPwI+aWZgz9iyiFBq0wJCZUoti36UQ4W4aDF1aiKEpMbPzwEBu ebcJGbKoZQQuIwpw+nkdTvCSHvTSS1xCwDvOyekXtAUFtT3iQ51maUIAl+7CpCiAxKtP qmmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=mIcTewRZQqrNfMZMMD9LmZeGovOWZeGlFfZQol52MFU=; b=R+6avjbZzPkFkpNnUf2BDT9nFn/36/vReZ0B/+8XIfy6pe6AYvoeyd6ksz+T6Cekx+ TEwve95V4P7JrkfN8WwztGUlen5vpZzWAl+hcuZghxQZiy50iEwwXuP30ryD/BhVUm5t cizperaVFd6BsGL2sTRyuPBQbgpLlEgoNaPeAYMokU7GRHWKAJq+vU9m8ABi+hjRZuvh nkjucCVySf60cuxXhBVDbD0DpDsIpHsFkCtpuNxjjn4vTVq7HNmsXbdAbVB93QtRv5sY Akeo9AOL5blE2oupmzPn+DbFlCCM8VSyfFapsz/Dzz3hlcfm3DplgD9KNTWdcG9htUd7 dUbA== X-Gm-Message-State: ANhLgQ3xhCU/b9QkKzph+dZkinjEV0RJoLEUznPNBcIS+jqLyYXcKP9S GKq4M6g8PPqu78U1MtXPZ7BY70U6GGY= X-Google-Smtp-Source: ADFU+vsiA7T43U9f8fHJ/NM1M4uQjp3ju6R+85KyktTtdosjhseVeMrYwaFPIoysb90A0PiUoJnF9g== X-Received: by 2002:a63:2044:: with SMTP id r4mr6706685pgm.335.1585444044232; Sat, 28 Mar 2020 18:07:24 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::6c3]) by smtp.gmail.com with ESMTPSA id w138sm7183441pff.145.2020.03.28.18.07.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Mar 2020 18:07:23 -0700 (PDT) From: John Soo To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-haskell-snippets. Date: Sat, 28 Mar 2020 18:07:22 -0700 Message-ID: <87k1342cl1.fsf@asu.edu> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52a X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 01:07:28 -0000 Hi Guix, I find the haskell-snippets very helpful when writing haskell. Thanks, John From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 13:17:21 2020 Received: (at 40300) by debbugs.gnu.org; 30 Mar 2020 17:17:21 +0000 Received: from localhost ([127.0.0.1]:34964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIy2K-00040r-Td for submit@debbugs.gnu.org; Mon, 30 Mar 2020 13:17:21 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIy2J-00040c-8I for 40300@debbugs.gnu.org; Mon, 30 Mar 2020 13:17:19 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1239AC0003; Mon, 30 Mar 2020 17:17:11 +0000 (UTC) From: Nicolas Goaziou To: John Soo Subject: Re: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. References: <87k1342cl1.fsf@asu.edu> Date: Mon, 30 Mar 2020 19:17:10 +0200 In-Reply-To: <87k1342cl1.fsf@asu.edu> (John Soo's message of "Sat, 28 Mar 2020 18:07:22 -0700") Message-ID: <871rp97ofd.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40300 Cc: 40300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, John Soo writes: > I find the haskell-snippets very helpful when writing haskell. Thank you... but you forgot to send the patch. Regards, -- Nicolas Goaziou From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 13:38:17 2020 Received: (at 40300) by debbugs.gnu.org; 30 Mar 2020 17:38:17 +0000 Received: from localhost ([127.0.0.1]:35002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIyMX-0004fK-9Y for submit@debbugs.gnu.org; Mon, 30 Mar 2020 13:38:16 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIyMV-0004f6-A3 for 40300@debbugs.gnu.org; Mon, 30 Mar 2020 13:38:12 -0400 Received: by mail-pf1-f194.google.com with SMTP id b72so8917234pfb.11 for <40300@debbugs.gnu.org>; Mon, 30 Mar 2020 10:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+3kfcielEH/gW9IKAJRGOmXZsoqS3zEIHvf7Qei2rwE=; b=FZuLK8SibJgSjoT0K0DTvBBAlUDj6nXpOe1BYrBIfaIn6/LP+b/vY3kmfaacfeW+Ko PsU+U/Mtt/mqttNkS+wQNPj+0q0xCsHQgfLj0lN6xRC0IWpGyQMuV/VjIrBZ7ibnzsLh W/7dMNbecwZToi2L2B6AC8pg0nSrdlzwa9jrmdHKIdq0sS+CUSbDXTHbZ3FY4l7bh6v6 cZXUVacOT/Daga+BAWy4Mwl4vcOl/g7nMqwPS7G/zwgC0zdLv/byQGULgOhOsR+3dICz d8j5cXGWtPeF5ePwl5Z+THqywYaTnxbEt1imsjrH7hcKWg2Wq1fO2kBNccgob5MnZmtZ ANug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+3kfcielEH/gW9IKAJRGOmXZsoqS3zEIHvf7Qei2rwE=; b=XEtANonA87Xdpg5klilWnbpIcB8jaGlNsj/elzruu6jgX2uNQT6qnMiDuWPgeCK2tM 8G29VQICFF6ceZBK0qsimjuSnZbTIXZxW9hElCOgZV7+wEsBz+CNqZgjiCWbkpovrwOa VzwSU6Gc2qe64ZNdDOqfigG0rAbkeqBDDBLs19zbMXpnbY35TIynTQjIhOAYLlMUPGe4 RiZpPsbIxo+H545rFrM9+s88MLkpyVeXPDSeAYrkyKLenl3gQH5TgVqtWZHIuO1G/aQb 6T6TyRqniCttgzb77MnvLxt/x0hlO1YineAKfUoHgLRXyZVeaCZc2mHFJejR38Goq5cw ruug== X-Gm-Message-State: ANhLgQ1kHdVVVb9I7WHvVSiQwhg+SNjLF78MZCFCNwMBV+QpIOP5PJOl MPL5Y/1/8tf/YS1cxlKM5YeYVT2t7OmwAQ== X-Google-Smtp-Source: ADFU+vsCKAaiWOR2CxQRaSUn7O/RBJ4fICWZBrtRv4JbPXzGVQCf6DO5d4u0jydDvUYIfQ0HpCUDXw== X-Received: by 2002:aa7:8643:: with SMTP id a3mr14598320pfo.133.1585589884935; Mon, 30 Mar 2020 10:38:04 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::6c3]) by smtp.gmail.com with ESMTPSA id a26sm10171084pgn.14.2020.03.30.10.38.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Mar 2020 10:38:03 -0700 (PDT) From: John Soo To: Nicolas Goaziou Subject: Re: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40300 Cc: 40300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 13:52:39 2020 Received: (at 40300) by debbugs.gnu.org; 30 Mar 2020 17:52:39 +0000 Received: from localhost ([127.0.0.1]:35011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIyaV-00076o-EC for submit@debbugs.gnu.org; Mon, 30 Mar 2020 13:52:39 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:30149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIyaT-00076R-VS for 40300@debbugs.gnu.org; Mon, 30 Mar 2020 13:52:38 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id D620D240005; Mon, 30 Mar 2020 17:52:29 +0000 (UTC) From: Nicolas Goaziou To: John Soo Subject: Re: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. References: <87k1342cl1.fsf@asu.edu> <871rp97ofd.fsf@nicolasgoaziou.fr> <877dz1wxom.fsf@asu.edu> Date: Mon, 30 Mar 2020 19:52:29 +0200 In-Reply-To: <877dz1wxom.fsf@asu.edu> (John Soo's message of "Mon, 30 Mar 2020 10:38:01 -0700") Message-ID: <87sghp6882.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40300 Cc: 40300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, John Soo 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 15:03:33 2020 Received: (at 40300) by debbugs.gnu.org; 30 Mar 2020 19:03:33 +0000 Received: from localhost ([127.0.0.1]:35074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIzh6-0000iN-WD for submit@debbugs.gnu.org; Mon, 30 Mar 2020 15:03:33 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIzh5-0000i9-By for 40300@debbugs.gnu.org; Mon, 30 Mar 2020 15:03:32 -0400 Received: by mail-pg1-f193.google.com with SMTP id c23so726630pgj.3 for <40300@debbugs.gnu.org>; Mon, 30 Mar 2020 12:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jugQa8B0l6dIsEUo920SlN9d3jxsbRJSd7eNeylq5/w=; b=ZJ3o1U07410blYYyyrkwEo7VptVQpG9qDCEG6HFfXf4+Y+CyexfJ1etyznEQiA2MNe EAmYbf3FTeYyesWrWDJ2nXr7rgtrXj2n6794p7N9wZboT+njA1sdarKmdCkzqpY5dzHL PVaK/zLjexSPEu0a3ICjzK9LTA3qNcJN3X0hG7uthzCSiGBrNsJmTqp3kMzO6X1zTqmq Nepa3IBBOZp+gzkE/hhqjT8wqTp+3uduu3BkWtMP+f2XUnSMfQkhKH+oMRmAMvUeEuH0 9y67T2ROpcWpm48K1j2jhW5hEYSwuWutEseyPoovLVVVOcDN9nqCj7UqgGJK5Zs/8a5H nThg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jugQa8B0l6dIsEUo920SlN9d3jxsbRJSd7eNeylq5/w=; b=YsB70WkaX2dNXzQleSEYOtdqMPa4vcQ5N9ypWYEVw+RheYWyTuOiCky3QBvicDDOVA BYdr0cM1+GjgMh65xMJC8IB0eLNOGMXikXIay6fY/OLoSdjwrUSQfm4l8xGGMGjNwcLz 4BGAZd0o3VVe3WfDot6m/7y3GAx+YKtU2m5MAE9WhYlY7vOwabyRSmG2R+gc40lCCqii v59nV4dKddoDkinNGwdlJ7FTcsvQsXQp4fC+bUyY0mmo45Lh4IH5L6MsJ2I8zu73PJEg N9OCmQfZVNCsz4AhNc03AqEfNNvoGqVWNmcUVHJZM4s4KnFcCTKv/r121GNkVsSsTUcg WDng== X-Gm-Message-State: ANhLgQ0KnkIIR7jqCFu5ALZYGiFwmu8XZQQrO/rgrY6hXaktp7p3aDOF Nz+7IjFhFdhXoEglF8zJE7aAOHWGC9yyuQ== X-Google-Smtp-Source: ADFU+vsfveWf/zu/Iro6NBZbMOLfu4s7NJl20ku1H6uQdQ6tqFaNFvlT9fUVz7rKEqOZ25PiMTzBwQ== X-Received: by 2002:a63:705d:: with SMTP id a29mr11912195pgn.304.1585595005141; Mon, 30 Mar 2020 12:03:25 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::6c3]) by smtp.gmail.com with ESMTPSA id s12sm10205342pgi.38.2020.03.30.12.03.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Mar 2020 12:03:24 -0700 (PDT) From: John Soo To: Nicolas Goaziou Subject: Re: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. References: <87k1342cl1.fsf@asu.edu> <871rp97ofd.fsf@nicolasgoaziou.fr> <877dz1wxom.fsf@asu.edu> <87sghp6882.fsf@nicolasgoaziou.fr> Date: Mon, 30 Mar 2020 12:03:23 -0700 In-Reply-To: <87sghp6882.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 30 Mar 2020 19:52:29 +0200") Message-ID: <87tv25vf5w.fsf@asu.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40300 Cc: 40300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > John Soo 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-emacs-haskell-snippets.patch Content-Description: add emacs-haskell-snippets. >From 1984fc60cc5045c50ae9f913b13ebbc93101f731 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 | 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 16:39:33 2020 Received: (at 40300-done) by debbugs.gnu.org; 30 Mar 2020 20:39:33 +0000 Received: from localhost ([127.0.0.1]:35170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJ1C1-0005NJ-2c for submit@debbugs.gnu.org; Mon, 30 Mar 2020 16:39:33 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:44883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJ1Bz-0005N4-HL for 40300-done@debbugs.gnu.org; Mon, 30 Mar 2020 16:39:32 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 6C5C0240002; Mon, 30 Mar 2020 20:39:24 +0000 (UTC) From: Nicolas Goaziou To: John Soo Subject: Re: [bug#40300] [PATCH] gnu: Add emacs-haskell-snippets. References: <87k1342cl1.fsf@asu.edu> <871rp97ofd.fsf@nicolasgoaziou.fr> <877dz1wxom.fsf@asu.edu> <87sghp6882.fsf@nicolasgoaziou.fr> <87tv25vf5w.fsf@asu.edu> Date: Mon, 30 Mar 2020 22:39:23 +0200 In-Reply-To: <87tv25vf5w.fsf@asu.edu> (John Soo's message of "Mon, 30 Mar 2020 12:03:23 -0700") Message-ID: <87lfnh60hw.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40300-done Cc: 40300-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) John Soo 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! From unknown Mon Aug 18 00:07:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Apr 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator