[racket] help with racket-bert and (import (bert)) from racket prompt. r6rs from racket prompt?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Apr 29 08:55:09 EDT 2013

The

 (require (planet yasir/racket-bert:1))

below already imports the bindings of the module named `(bert)':

 Welcome to Racket v5.3.4.6.
 > (require (planet yasir/racket-bert:1))
 > encode
 #<procedure:encode>
 > decode
 #<procedure:decode>

So, in general, you can use R6RS modules interactively by treating them
as Racket modules. Racket doesn't really support interactive R6RS
beyond that connection.

At Sun, 28 Apr 2013 21:13:56 -0700, "Jason E. Aten" wrote:
> I'm using racket from the linux shell, and not drracket.
> 
> I'd like to import and use the racket-bert package.  However I think the
> r6rs support that it requires is somehow preventing me from importing it or
> using it at the racket prompt.  Can r6rs packages be called interactively
> from the racket (not drracket) prompt?  I'm getting this error: "misuse of
> unit keyword".   I use racket inside of emacs, not drracket, so please
> don't suggest #lang r6rs.
> 
> $ racket
> Welcome to Racket v5.3.3.
> > (require (planet yasir/racket-bert:1))
> > (import (bert))
> stdin::39: import: misuse of unit keyword
>   in: (import (bert))
>   context...:
>    /home/me/pkg/racket/install/collects/racket/private/misc.rkt:87:7
> >
> 
> > #lang r6rs
> stdin::55: read: #lang not enabled in the current context
>   context...:
>    /home/me/pkg/racket/install/collects/racket/private/misc.rkt:87:7
> > r6rs: undefined;
>  cannot reference undefined identifier
>   context...:
>    /home/me/pkg/racket/install/collects/racket/private/misc.rkt:87:7
> >
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.