From: jgrant@parenthetical.io
To: David Thompson <dthompson2@worcester.edu>
Cc: guix-devel@gnu.org
Subject: [PATCH v2] gnu.scm: add syntatic sugar macros for use-modules of packages, services, and system in the OS EDSL.
Date: Mon, 19 Jan 2015 10:13:36 -0600 [thread overview]
Message-ID: <0dc6d00fd1197628f7449d54beb8021f@parenthetical.io> (raw)
In-Reply-To: <87y4ozhqwc.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me>
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
> The 'Commentary', and 'Code' stuff is saved for the very top of
> a module file. Just leave the actual comment (using 2 semi-colons
> instead of 3)
Done.
> and make sure to keep lines under 80 characters. Use the
> 'fill-paragraph' function in Emacs to do it.
And done. Decided to trim it to exactly 80 columns total instead of
wrapping literally just one word in a comment.
Okay, unless there are any other corrections/suggestions, I think I'm
good to go? :^)
'
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-PATCH-gnu.scm-add-syntactic-sugar-macros-for-use-mod.patch --]
[-- Type: text/x-diff; name=0001-PATCH-gnu.scm-add-syntactic-sugar-macros-for-use-mod.patch, Size: 1255 bytes --]
From ee940d31ec9b3847c1bd9dfe817ba8f6550361bc Mon Sep 17 00:00:00 2001
From: "Joshua S. Grant" <jgrant@parethetical.io>
Date: Sun, 18 Jan 2015 16:23:21 -0600
Subject: [PATCH] [PATCH] gnu.scm: add syntactic sugar macros for use-modules
of packages, services, and system in the OS EDSL.
---
gnu.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu.scm b/gnu.scm
index eb0bf71..bca4586 100644
--- a/gnu.scm
+++ b/gnu.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015 Joshua S. Grant <jgrant@parenthetical.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -44,4 +45,19 @@
(module-use! i (resolve-interface m))))
%public-modules)))
+;;; Commentary:
+;;;
+;;; Macros that add Syntatic Sugar to use-modules of packages, services, and system.
+;;;
+;;; Code:
+
+(define-syntax-rule (use-package-modules module ...)
+ (use-modules (gnu packages module) ...))
+
+(define-syntax-rule (use-service-modules module ...)
+ (use-modules (gnu services module) ...))
+
+(define-syntax-rule (use-system-modules module ...)
+ (use-modules (gnu system module) ...))
+
;;; gnu.scm ends here
--
2.1.0
next prev parent reply other threads:[~2015-01-19 16:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-18 22:32 [PATCH] gnu.scm: add syntatic sugar macros for use-modules of packages, services, and system in the OS EDSL jgrant
2015-01-19 12:54 ` David Thompson
2015-01-19 16:13 ` jgrant [this message]
2015-01-22 16:02 ` [PATCH v2] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0dc6d00fd1197628f7449d54beb8021f@parenthetical.io \
--to=jgrant@parenthetical.io \
--cc=dthompson2@worcester.edu \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.