[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interpreter Dies Given Malformed Module Declaration
From: |
Andy Wingo |
Subject: |
Re: Interpreter Dies Given Malformed Module Declaration |
Date: |
Fri, 19 Nov 2010 15:24:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi Noah,
On Mon 15 Nov 2010 07:08, Noah Lavine <address@hidden> 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/