[racket] Understanding error in use of submodule in my language

From: Marco Monteiro (marco at neniu.org)
Date: Thu Aug 21 12:22:29 EDT 2014


I'm using Racket 6.1

I'm trying to understand this error. I'm using submodules in a language I
defined. The language file is here:


Notice the commented out line 28.

I use that language in the following code


raco expanding this last file fails with

module: duplicate submodule definition
  at: configure-runtime
  in: module
[running body]
   /usr/share/racket/collects/raco/raco.rkt: [running body]
   /usr/share/racket/collects/raco/main.rkt: [running body]

If I uncomment line 28 it no longer fails. If I use (module ...) instead of
(module* ...) it no longer fails independently of line 28 being commented
out or not.

Trying to macro expand that in drracket gives me "Internal error: car:
contract violation ." error.

What is happending here?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140821/10269132/attachment.html>

Posted on the users mailing list.