Hi Noah,

On Mon 15 Nov 2010 07:08, Noah Lavine <[email protected]> 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/

Reply via email to