GNU bug report logs - #17502
R6RS `library' form must have exports before imports

Previous Next

Package: guile;

Reported by: Taylan Ulrich Bayirli/Kammer <taylanbayirli <at> gmail.com>

Date: Thu, 15 May 2014 21:03:01 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Taylan Ulrich Bayirli/Kammer <taylanbayirli <at> gmail.com>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 17502 <at> debbugs.gnu.org
Subject: bug#17502: R6RS `library' form must have exports before imports
Date: Thu, 05 Jun 2014 19:31:47 +0200
[Message part 1 (text/plain, inline)]
Hi Mark, thanks for the comments. :-)

Here the improved patch, against stable-2.0/73ff8e3:

[0001-R6RS-library-documentation-fix.patch (text/x-diff, inline)]
From 73ff8e3d19430f305a44cce839a588f68a0704d1 Mon Sep 17 00:00:00 2001
From: Taylan Ulrich B <taylanbayirli <at> gmail.com>
Date: Thu, 5 Jun 2014 19:27:53 +0200
Subject: [PATCH] R6RS library documentation fix

* doc/ref/api-modules.texi (R6RS Libraries): Move 'export' before
  'import' in the example library form, as required by R6RS.
---
 doc/ref/api-modules.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi
index 286a37d..0f54e01 100644
--- a/doc/ref/api-modules.texi
+++ b/doc/ref/api-modules.texi
@@ -584,8 +584,8 @@ expression:
 
 @lisp
   (library (mylib (1 2))
-    (import (otherlib (3)))
-    (export mybinding))
+    (export mybinding)
+    (import (otherlib (3))))
 @end lisp
 
 is equivalent to the module definition:
-- 
1.8.4


This bug report was last modified 10 years and 356 days ago.

Previous Next


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