From: Andy Wingo <wingo@pobox.com>
To: Noah Lavine <noah.b.lavine@gmail.com>
Cc: bug-guile@gnu.org
Subject: Re: Interpreter Dies Given Malformed Module Declaration
Date: Fri, 19 Nov 2010 15:24:03 +0100 [thread overview]
Message-ID: <m339qx4cjg.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTimO9iSdU9ceOP_ZsSFVjAa0Exy+LpoakHvfTFCR@mail.gmail.com> (Noah Lavine's message of "Mon, 15 Nov 2010 01:08:22 -0500")
Hi Noah,
On Mon 15 Nov 2010 07:08, Noah Lavine <noah.b.lavine@gmail.com> writes:
> Running the following script with 'guile -l <filename>'
>
> #!/usr/bin/guile
> !#
>
> (define-module (test-module)
> #:export should-be-a-list)
>
> Gives this result:
>
> ;;; WARNING: compilation of load-test.scm failed:
> ;;; key wrong-type-arg, throw_args ("append" "Wrong type argument in
> position ~A (expecting ~A): ~S" (1 "empty list" should-be-a-list)
> (should-be-a-list))
> Backtrace:
I think I have fixed this in git. Now the result it:
$ meta/guile /tmp/foo.scm
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling /tmp/foo.scm
;;; WARNING: compilation of /tmp/foo.scm failed:
;;; key syntax-error, throw_args (define-module "unknown keyword or bad argument" #f #:export should-be-a-list)
Syntax error:
unknown location: define-module: unknown keyword or bad argument in subform should-be-a-list of #:export
Of course, the error can still be better, but it's an improvement.
Cheers,
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2010-11-19 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-15 6:08 Interpreter Dies Given Malformed Module Declaration Noah Lavine
2010-11-19 14:24 ` Andy Wingo [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m339qx4cjg.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
--cc=noah.b.lavine@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).