views:

72

answers:

1

I would like to use the R6RS library/module system as detailed in Dybvig's TSPL4 chapter 10 in Racket. I selected "Pretty Big" language in DrRacket. But when I do

(import (list-tools setops) (more-setops) (rnrs))

on the top window and run, I get this error:

"import: misuse of unit keyword in: (import (list-tools setops) (more-setops) (rnrs))"

How do I write and run r6rs programs and particularly use the packaging/module system as described by R6RS Standard Section 7 in Racket?

+3  A: 

The "Pretty Big" language is a legacy language (and it's marked as such in the language selection box). You should not use it for the R6RS language. To interact with R6RS code, you should use the top item in the language dialog ("Use the language declared in the source"), and start your programs with #!r6rs. For more details, it's best to ask questions on the Racket mailing list.

Eli Barzilay